]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
Make the margin between wxSpinCtrlGeneric sub-windows compatible with MSW.
[wxWidgets.git] / src / generic / grid.cpp
index 1b23c55dac8e126f40c8f45fc389121c142f9614..d9a1a800d405b41fec1108856042c81f9e9e9545 100644 (file)
@@ -6281,7 +6281,9 @@ int wxGrid::PosToEdgeOfLine(int pos, const wxGridOperations& oper) const
         else if ( line > 0 &&
                     pos - oper.GetLineStartPos(this,
                                                line) < WXGRID_LABEL_EDGE_ZONE )
-            return line - 1;
+        {
+            return oper.GetLineBefore(this, line);
+        }
     }
 
     return -1;