Use IsEmpty() function to check if wxRect represents empty rectangle.
This commit is contained in:
parent
9e77932278
commit
98a4c40168
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user