From 31d4e10524b645ebb24161e6b5c78046a7e5038b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 14 Oct 2009 17:00:20 +0000 Subject: [PATCH] Fix harmless unused variable warning in wxPropertyGrid code. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index a87ebc07cc..aa7864d43a 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -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; -- 2.47.2