Use IsOk() function to check whether wxBitmap is valid.

Use dedicated function instead of comparing wxBitmap instance with wxNullBitmap.
This commit is contained in:
Artur Wieczorek
2015-07-17 22:26:38 +02:00
parent 78d09e2e90
commit 15d8dae6ff

View File

@@ -1015,7 +1015,7 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
wxToolBarToolBase* tool;
if ( &bmp != &wxNullBitmap )
if ( bmp.IsOk() )
tool = m_pToolbar->AddTool(wxID_ANY, label, bmp,
label, wxITEM_RADIO);
else