From e74e345e04cb0de86a8b395a295532282004564a Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 26 Dec 2018 10:17:48 +0100 Subject: [PATCH] Use dedicated function to check if array of selected properties is empty --- src/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index a2e4ba2cab..8565941760 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -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;