mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*CtrlLib: Fixed crash in multiselect mode Ctrl+A when there is no cursor
git-svn-id: svn://ultimatepp.org/upp/trunk@3536 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2392b36304
commit
f6dcdbe88e
1 changed files with 1 additions and 1 deletions
|
|
@ -1699,7 +1699,7 @@ void ArrayCtrl::KeyMultiSelect(int aanchor, dword key)
|
|||
ClearSelection();
|
||||
if(key & K_SHIFT) {
|
||||
anchor = aanchor;
|
||||
if(anchor >= 0)
|
||||
if(anchor >= 0 && cursor >= 0)
|
||||
Select(min(anchor, cursor), abs(anchor - cursor) + 1);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue