don't crash in case of unknown sizer type (coverity checker CID 17)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-08 00:05:44 +00:00
parent 1e5deeb2f1
commit 641c5f1a97

View File

@@ -200,6 +200,11 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
else if (m_class == wxT("wxGridBagSizer"))
sizer = Handle_wxGridBagSizer();
if ( !sizer )
{
wxLogError(_T("Failed to create size of class \"%s\""), m_class.c_str());
return NULL;
}
wxSize minsize = GetSize(wxT("minsize"));
if (!(minsize == wxDefaultSize))