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
This commit is contained in:
unodgs 2011-05-31 19:04:22 +00:00
parent b6e804f594
commit 5ec8974ff3

View file

@ -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;