diff options
Diffstat (limited to 'gui/ThemeEval.cpp')
-rw-r--r-- | gui/ThemeEval.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp index 5d841c6ad7..6a0056c63b 100644 --- a/gui/ThemeEval.cpp +++ b/gui/ThemeEval.cpp @@ -127,10 +127,7 @@ void ThemeEval::addLayout(ThemeLayout::LayoutType type, int spacing, bool center if (spacing == -1) spacing = getVar("Globals.Layout.Spacing", 4); - if (type == ThemeLayout::kLayoutVertical) - layout = new ThemeLayoutVertical(_curLayout.top(), spacing, center); - else if (type == ThemeLayout::kLayoutHorizontal) - layout = new ThemeLayoutHorizontal(_curLayout.top(), spacing, center); + layout = new ThemeLayoutStacked(_curLayout.top(), type, spacing, center); assert(layout); |