Do not crash when an invalid widget is handled, i.e. null StaticBitmap widget when the image file could not be found.

This commit is contained in:
Catalin
2015-04-29 17:27:43 +03:00
parent c6ba3654f4
commit fe93da75f4

View File

@@ -1253,6 +1253,8 @@ void WidgetsPage::SetUpWidget()
it != widgets.end();
++it )
{
wxCHECK_RET(*it, "NULL widget");
#if wxUSE_TOOLTIPS
(*it)->SetToolTip(GetAttrs().m_tooltip);
#endif // wxUSE_TOOLTIPS