From fffa98669c92e801e899152d5be8404d0e2d8700 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Tue, 23 Jun 2020 22:29:03 +0100 Subject: [PATCH] GUI: Fix Usage of Uninitialized Variable in Theme Layout RTL Code --- gui/ThemeLayout.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/ThemeLayout.h b/gui/ThemeLayout.h index e9f7802f61a..51f3cd7c831 100644 --- a/gui/ThemeLayout.h +++ b/gui/ThemeLayout.h @@ -115,6 +115,7 @@ protected: public: virtual bool getWidgetData(const Common::String &name, int16 &x, int16 &y, int16 &w, int16 &h, bool &useRTL); + bool getUseRTL() { return _useRTL; } virtual Graphics::TextAlign getWidgetTextHAlign(const Common::String &name); @@ -255,7 +256,7 @@ class ThemeLayoutTabWidget : public ThemeLayoutWidget { public: ThemeLayoutTabWidget(ThemeLayout *p, const Common::String &name, int16 w, int16 h, Graphics::TextAlign align, int tabHeight): - ThemeLayoutWidget(p, name, w, h, align, _useRTL) { + ThemeLayoutWidget(p, name, w, h, align, p->getUseRTL()) { _tabHeight = tabHeight; }