From 98a4c40168b817b0e2666e28765ed83b834da993 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 6 Jul 2015 23:04:21 +0200 Subject: [PATCH] Use IsEmpty() function to check if wxRect represents empty rectangle. --- 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 0b92179d2a..5ba5f9ab90 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2603,7 +2603,7 @@ void wxPropertyGrid::DrawItems( const wxPGProperty* p1, const wxPGProperty* p2 ) PrepareAfterItemsAdded(); wxRect r = GetPropertyRect(p1, p2); - if ( r.width > 0 ) + if ( !r.IsEmpty() ) { // Convert rectangle from logical grid coordinates to physical ones int vx, vy;