]> git.saurik.com Git - wxWidgets.git/commitdiff
Only paint lines in MSW
authorJulian Smart <julian@anthemion.co.uk>
Tue, 4 Dec 2001 08:08:21 +0000 (08:08 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 4 Dec 2001 08:08:21 +0000 (08:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/gizmos/splittree.cpp

index 031a39cb8a4b65bd46627c09c38f1299d81c7697..cfad5864ac02084b91e395878ba499c4a7491854 100644 (file)
@@ -252,8 +252,10 @@ void wxRemotelyScrolledTreeCtrl::OnPaint(wxPaintEvent& event)
 
        wxTreeCtrl::OnPaint(event);
 
+    // The generic tree already knows how to draw lines
+#ifdef __WXMSW__
     if ((GetWindowStyle() & wxTR_ROW_LINES) == 0)
-        return ;
+        return FALSE;
 
     // Reset the device origin since it may have been set
     dc.SetDeviceOrigin(0, 0);
@@ -280,6 +282,7 @@ void wxRemotelyScrolledTreeCtrl::OnPaint(wxPaintEvent& event)
                cy = itemRect.GetBottom();
                dc.DrawLine(0, cy, clientSize.x, cy);
        }
+#endif
 }