]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_sizer.cpp
added GetScreenPosition/Rect() which always return the screen coordinates of the...
[wxWidgets.git] / src / xrc / xh_sizer.cpp
index cfb98b21f77dcaaa012aadc1e383c8ab413636cb..91dea16977095c0c04bbfb55d4ba51f28a777aa7 100644 (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))