Use dedicated function to check if array of selected properties is empty
This commit is contained in:
parent
d85a03b561
commit
e74e345e04
@ -854,7 +854,7 @@ bool wxPropertyGrid::AddToSelectionFromInputEvent( wxPGProperty* prop,
|
||||
}
|
||||
else if ( mouseEvent->ShiftDown() )
|
||||
{
|
||||
if ( selection.size() > 0 && !prop->IsCategory() )
|
||||
if ( !selection.empty() && !prop->IsCategory() )
|
||||
addToExistingSelection = 2;
|
||||
else
|
||||
addToExistingSelection = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user