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:
@@ -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
|
||||
|
Reference in New Issue
Block a user