Remove unnecessary position check

Horizontally scrolled item can have a negative x-position.
This commit is contained in:
Artur Wieczorek
2018-12-28 11:09:40 +01:00
parent 4eef8d9658
commit b569a429a2

View File

@@ -1380,8 +1380,6 @@ void wxPGProperty::OnCustomPaint( wxDC& dc,
wxCHECK_RET( bmp && bmp->IsOk(), wxS("invalid bitmap") );
wxCHECK_RET( rect.x >= 0, wxS("unexpected measure call") );
dc.DrawBitmap(*bmp,rect.x,rect.y);
}