]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/manager.cpp
Check for invalid items in generic wxDataViewCtrl::GetSelections().
[wxWidgets.git] / src / propgrid / manager.cpp
index 1b4bf21bb0b269530e625a101bb57098815d9fa0..2030ec2ea303ff10a725113a9fa02be426285e05 100644 (file)
@@ -986,7 +986,7 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
         state->InitNonCatMode();
     }
 
-    if ( label.length() )
+    if ( !label.empty() )
     {
         wxASSERT_MSG( !pageObj->m_label.length(),
                       wxT("If page label is given in constructor, empty label must be given in AddPage"));