]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless unused variable warning in wxPropertyGrid code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Oct 2009 17:00:20 +0000 (17:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Oct 2009 17:00:20 +0000 (17:00 +0000)
Declare variable only used #if wxPG_DOUBLE_BUFFER inside the #if.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index a87ebc07cc9bcd6f709303dfa5940e45f91ab228..aa7864d43a076c5bf7f509faf3ea6d7ae20ff46c 100644 (file)
@@ -1982,13 +1982,13 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
     long windowStyle = m_windowStyle;
 
     int xRelMod = 0;
-    int yRelMod = 0;
 
     //
     // With wxPG_DOUBLE_BUFFER, do double buffering
     // - buffer's y = 0, so align drawRect and coordinates to that
     //
 #if wxPG_DOUBLE_BUFFER
+    int yRelMod = 0;
 
     wxRect cr2;