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
This commit is contained in:
Jaakko Salli
2009-10-15 14:49:08 +00:00
parent c27181d1a1
commit 50355f75e5

View File

@@ -277,10 +277,10 @@ void wxPGDefaultRenderer::Render( wxDC& dc, const wxRect& rect,
{ {
if ( flags & Selected ) if ( flags & Selected )
{ {
if ( imageWidth > 0 ) if ( imageOffset > 0 )
{ {
imageOffset -= DEFAULT_IMAGE_OFFSET_INCREMENT; imageOffset -= DEFAULT_IMAGE_OFFSET_INCREMENT;
imageWidth += wxCC_CUSTOM_IMAGE_MARGIN2 + 4; imageOffset += wxCC_CUSTOM_IMAGE_MARGIN2 + 4;
} }
DrawCaptionSelectionRect( dc, DrawCaptionSelectionRect( dc,