X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e7761fade505d3468aa7bd06954c4968acd214e..1b5ff3a3feed9f5a23dcf8de40189c0af2746483:/src/generic/renderg.cpp diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index 9e44ad6c5a..5f7f0074c3 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -218,13 +218,15 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win), // half of the length of the horz lines in "-" and "+" const wxCoord halfWidth = rect.width/2 - 2; dc.SetPen(*wxBLACK_PEN); - dc.DrawLine(xMiddle - halfWidth, yMiddle, xMiddle + halfWidth, yMiddle); + dc.DrawLine(xMiddle - halfWidth, yMiddle, + xMiddle + halfWidth + 1, yMiddle); + if ( !(flags & wxCONTROL_EXPANDED) ) { // turn "-" into "+" const wxCoord halfHeight = rect.height/2 - 2; dc.DrawLine(xMiddle, yMiddle - halfHeight, - xMiddle, yMiddle + halfHeight); + xMiddle, yMiddle + halfHeight + 1); } }