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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user