From b569a429a231389060860e85cc35bb1cfa7351bd Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 28 Dec 2018 11:09:40 +0100 Subject: [PATCH] Remove unnecessary position check Horizontally scrolled item can have a negative x-position. --- src/propgrid/property.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index 9716d3676d..700eef79ac 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -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); }