From 50355f75e5996236eea1a0bad116af0599ab289b Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Thu, 15 Oct 2009 14:49:08 +0000 Subject: [PATCH] Fixed regression: wxPropertyGrid caption selection rectangle was drawn at incorrect horizontal offset. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/property.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index 6f1dc5408e..59ec8d2625 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -277,10 +277,10 @@ void wxPGDefaultRenderer::Render( wxDC& dc, const wxRect& rect, { if ( flags & Selected ) { - if ( imageWidth > 0 ) + if ( imageOffset > 0 ) { imageOffset -= DEFAULT_IMAGE_OFFSET_INCREMENT; - imageWidth += wxCC_CUSTOM_IMAGE_MARGIN2 + 4; + imageOffset += wxCC_CUSTOM_IMAGE_MARGIN2 + 4; } DrawCaptionSelectionRect( dc, -- 2.47.2