]> git.saurik.com Git - wxWidgets.git/commitdiff
really fixed '-' and '+' drawing
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Aug 2003 01:15:12 +0000 (01:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Aug 2003 01:15:12 +0000 (01:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/renderg.cpp

index 9e44ad6c5a77b851ba48609971785c21f57ec758..5f7f0074c3274a8a91019278d8389d8105c6689f 100644 (file)
@@ -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);
     }
 }