Use dedicated function to check if array of selected properties is empty

This commit is contained in:
Artur Wieczorek 2018-12-26 10:17:48 +01:00
parent d85a03b561
commit e74e345e04

View File

@ -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;