Fixed: Parser crash when adding an XML layout with an unhandled type.

svn-id: r34801
This commit is contained in:
Vicent Marti 2008-10-14 17:29:48 +00:00
parent b3625cae2f
commit 820a45d851
2 changed files with 6 additions and 1 deletions

View file

@ -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),