]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
Use the new wx_truncate_cast for any narrowing conversions
[wxWidgets.git] / src / generic / grid.cpp
index 4a491aae1d6874681611430114a1c80ed5988824..e8c4009b9504fb142e03b231ca20b2071099073b 100644 (file)
@@ -5021,7 +5021,7 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event )
     //
     else if (event.LeftDClick() )
     {
-        int row = YToEdgeOfRow(y);
+        row = YToEdgeOfRow(y);
         if ( row < 0 )
         {
             row = YToRow(y);
@@ -5245,7 +5245,7 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event )
     //
     if ( event.LeftDClick() )
     {
-        int col = XToEdgeOfCol(x);
+        col = XToEdgeOfCol(x);
         if ( col < 0 )
         {
             col = XToCol(x);