diff options
author | D G Turner | 2020-01-08 19:16:21 +0000 |
---|---|---|
committer | D G Turner | 2020-01-08 19:16:21 +0000 |
commit | 1dc24d06fd1fbd5cadb07cbee988240829f27c7f (patch) | |
tree | e3149ad05b5379df461b652bae59b36b8fbce6a5 /gui | |
parent | 0bae2992577d52dd7c90f5aa5a48a0a39c52ef1e (diff) | |
download | scummvm-rg350-1dc24d06fd1fbd5cadb07cbee988240829f27c7f.tar.gz scummvm-rg350-1dc24d06fd1fbd5cadb07cbee988240829f27c7f.tar.bz2 scummvm-rg350-1dc24d06fd1fbd5cadb07cbee988240829f27c7f.zip |
GUI: Fix Missing Default Switch Cases in Theme Layout Class
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeLayout.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp index 10347f0ab9..618ecdc1e3 100644 --- a/gui/ThemeLayout.cpp +++ b/gui/ThemeLayout.cpp @@ -298,6 +298,7 @@ void ThemeLayoutStacked::reflowLayoutVertical(Widget *widgetChain) { for (uint i = 0; i < _children.size(); ++i) { switch (_itemAlign) { case kItemAlignStart: + default: _children[i]->offsetX(_padding.left); break; case kItemAlignCenter: @@ -385,6 +386,7 @@ void ThemeLayoutStacked::reflowLayoutHorizontal(Widget *widgetChain) { for (uint i = 0; i < _children.size(); ++i) { switch (_itemAlign) { case kItemAlignStart: + default: _children[i]->offsetY(_padding.top); break; case kItemAlignCenter: |