From 1dc24d06fd1fbd5cadb07cbee988240829f27c7f Mon Sep 17 00:00:00 2001 From: D G Turner Date: Wed, 8 Jan 2020 19:16:21 +0000 Subject: GUI: Fix Missing Default Switch Cases in Theme Layout Class --- gui/ThemeLayout.cpp | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3