]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed regression: wxPropertyGrid caption selection rectangle was drawn at incorrect...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 15 Oct 2009 14:49:08 +0000 (14:49 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 15 Oct 2009 14:49:08 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/property.cpp

index 6f1dc5408effc54038fb1b7b355c89e78cd7afa8..59ec8d262582b4c192cc67ac78b58dea514403af 100644 (file)
@@ -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,