]> git.saurik.com Git - wxWidgets.git/commitdiff
no real change: just rename "near" into "onNearPart" (MSVC doesn't like 'near' as...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 3 Jun 2010 21:14:34 +0000 (21:14 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 3 Jun 2010 21:14:34 +0000 (21:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 074490df823e2334fd7d47e9d5fc66fec2fefee4..e4ff36d0a165ea3c5057c3fc08337924a2532cbd 100644 (file)
@@ -3484,15 +3484,15 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event )
                         // if we're on the "near" (usually left but right in
                         // RTL case) part of the column, the actual position we
                         // should be placed in is actually the one before it
-                        bool near;
+                        bool onNearPart;
                         const int middle = GetColLeft(colValid) +
                                                 GetColWidth(colValid)/2;
                         if ( GetLayoutDirection() == wxLayout_LeftToRight )
-                            near = x <= middle;
+                            onNearPart = (x <= middle);
                         else // wxLayout_RightToLeft
-                            near = x > middle;
+                            onNearPart = (x > middle);
 
-                        if ( near )
+                        if ( onNearPart )
                             pos--;
                     }