From 820a45d8514be835daf204f54472cbb884fa0ac9 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 14 Oct 2008 17:29:48 +0000 Subject: Fixed: Parser crash when adding an XML layout with an unhandled type. svn-id: r34801 --- gui/ThemeEval.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui/ThemeEval.cpp') diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp index 40b671c8c3..4437809599 100644 --- a/gui/ThemeEval.cpp +++ b/gui/ThemeEval.cpp @@ -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), -- cgit v1.2.3