Fixed: Parser crash when adding an XML layout with an unhandled type.
svn-id: r34801
This commit is contained in:
parent
b3625cae2f
commit
820a45d851
2 changed files with 6 additions and 1 deletions
|
@ -151,6 +151,8 @@ void ThemeEval::addLayout(ThemeLayout::LayoutType type, int spacing, bool center
|
|||
layout = new ThemeLayoutVertical(_curLayout.top(), spacing, center);
|
||||
else if (type == ThemeLayout::kLayoutHorizontal)
|
||||
layout = new ThemeLayoutHorizontal(_curLayout.top(), spacing, center);
|
||||
|
||||
assert(layout);
|
||||
|
||||
layout->setPadding(
|
||||
getVar("Globals.Padding.Left", 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue