From 9372fe7ab780fcdee717fb985d52f3c05ee417b6 Mon Sep 17 00:00:00 2001 From: unodgs Date: Tue, 31 May 2011 19:04:22 +0000 Subject: [PATCH] GridCtrl: Fixed crash when selecting cell/row in combination with RowChanging(false) git-svn-id: svn://ultimatepp.org/upp/trunk@3473 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/GridCtrl/GridCtrl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;