]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix "warning: operation on 'y' may be undefined".
authorMart Raudsepp <leio@gentoo.org>
Tue, 14 Jun 2005 19:57:01 +0000 (19:57 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 14 Jun 2005 19:57:01 +0000 (19:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/fl/controlbar.cpp

index 9183ec91d3c1dc51c0cff76bd3157c890c945e80..9a3fb1d03f0755cc4059f552985857e331255d7a 100644 (file)
@@ -3423,11 +3423,13 @@ void cbDockPane::DrawHorizHandle( wxDC& dc, int x, int y, int width  )
         dc.DrawLine( x,y, right, y );
     }
 
+    ++y;
     dc.SetPen( mpLayout->mDarkPen );
-    dc.DrawLine( x,y, right, ++y );
+    dc.DrawLine( x,y, right, y );
 
+    ++y;
     dc.SetPen( mpLayout->mBlackPen );
-    dc.DrawLine( x,y, right, ++y );
+    dc.DrawLine( x,y, right, y );
 }
 
 cbBarInfo* cbDockPane::GetBarInfoByWindow( wxWindow* pBarWnd )