During ArrayCtrl D & D, GetClickColumn/Row newly points to cell clicked on when starting the D & D action

git-svn-id: svn://ultimatepp.org/upp/trunk@937 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2009-03-11 10:27:29 +00:00
parent 7f5d05f0d5
commit 6f8dcbb929

View file

@ -1418,7 +1418,8 @@ void ArrayCtrl::LeftDown(Point p, dword flags)
header.StartSplitDrag(q);
return;
}
q = GetLineAt(p.y + sb);
q = clickpos.y = GetLineAt(p.y + sb);
ClickColumn(p);
selclick = false;
if(q >= 0 && q < GetCount() && IsSel(q) && (flags & (K_CTRL|K_SHIFT)) == 0) {
selclick = true;