]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/renderg.cpp
fix gcc warnings
[wxWidgets.git] / 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);
     }
 }