diff --git a/uppsrc/GridCtrl/GridCtrl.cpp b/uppsrc/GridCtrl/GridCtrl.cpp index fd52e4291..3cf461217 100644 --- a/uppsrc/GridCtrl/GridCtrl.cpp +++ b/uppsrc/GridCtrl/GridCtrl.cpp @@ -3271,7 +3271,10 @@ GridCtrl::CurState GridCtrl::SetCursor0(Point p, int opt, int dirx, int diry) { CurState cs; if(!row_changing) + { + cs.valid = false; return cs; + } bool mouse = opt & CU_MOUSE; bool highlight = opt & CU_HIGHLIGHT;