Use IsOk() function to check whether wxBitmap is valid.
Use dedicated function instead of comparing wxBitmap instance with wxNullBitmap.
This commit is contained in:
@@ -1015,7 +1015,7 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
|
|||||||
|
|
||||||
wxToolBarToolBase* tool;
|
wxToolBarToolBase* tool;
|
||||||
|
|
||||||
if ( &bmp != &wxNullBitmap )
|
if ( bmp.IsOk() )
|
||||||
tool = m_pToolbar->AddTool(wxID_ANY, label, bmp,
|
tool = m_pToolbar->AddTool(wxID_ANY, label, bmp,
|
||||||
label, wxITEM_RADIO);
|
label, wxITEM_RADIO);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user