Use IsEmpty() function to check if wxRect represents empty rectangle.
This commit is contained in:
@@ -2603,7 +2603,7 @@ void wxPropertyGrid::DrawItems( const wxPGProperty* p1, const wxPGProperty* p2 )
|
|||||||
PrepareAfterItemsAdded();
|
PrepareAfterItemsAdded();
|
||||||
|
|
||||||
wxRect r = GetPropertyRect(p1, p2);
|
wxRect r = GetPropertyRect(p1, p2);
|
||||||
if ( r.width > 0 )
|
if ( !r.IsEmpty() )
|
||||||
{
|
{
|
||||||
// Convert rectangle from logical grid coordinates to physical ones
|
// Convert rectangle from logical grid coordinates to physical ones
|
||||||
int vx, vy;
|
int vx, vy;
|
||||||
|
Reference in New Issue
Block a user