GridCtrl: Selection fix

git-svn-id: svn://ultimatepp.org/upp/trunk@15638 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-01-04 09:18:53 +00:00
parent 0dd3437d4c
commit 977836dfaa
2 changed files with 4 additions and 0 deletions

View file

@ -4604,6 +4604,8 @@ void GridCtrl::ClearRow(int r, int column_offset)
void GridCtrl::Clear(bool columns)
{
doscroll = false;
anchor = Null;
UpdateCtrls(UC_HIDE | UC_CTRLS);

View file

@ -260,6 +260,8 @@ void GridCtrl::ClearSelection()
items[i][j].Select(0);
}
anchor = Null;
Refresh();
selected_rows = 0;
selected_items = 0;