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() )
|
else if ( mouseEvent->ShiftDown() )
|
||||||
{
|
{
|
||||||
if ( selection.size() > 0 && !prop->IsCategory() )
|
if ( !selection.empty() && !prop->IsCategory() )
|
||||||
addToExistingSelection = 2;
|
addToExistingSelection = 2;
|
||||||
else
|
else
|
||||||
addToExistingSelection = 1;
|
addToExistingSelection = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user