Use IsEmpty() function to check if wxRect represents empty rectangle.

This commit is contained in:
Artur Wieczorek 2015-07-06 23:04:21 +02:00
parent 9e77932278
commit 98a4c40168

View File

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