diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-01-14 18:44:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-17 11:34:54 +0000 |
commit | 873be8f3ff28fd06b531b17d2c7cc41cbc1385e8 (patch) | |
tree | 7c91b3fb896dba99bcbc8d72ffc7b01001230d98 | |
parent | 9c02d4afa2d20116ba22d377c8c6b99b8fd102b3 (diff) |
fdo#51180 reset (Multi)Selection on Clear()
Change-Id: I06dde63093eab4e5e1c692f6363aca70b89de96a
Reviewed-on: https://gerrit.libreoffice.org/7429
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 0fbca4c5d3b8..91e29cfd9efe 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -1149,6 +1149,13 @@ void BrowseBox::Clear() DoHideCursor( "Clear" ); long nOldRowCount = nRowCount; nRowCount = 0; + if(bMultiSelection) + { + assert(uRow.pSel); + *uRow.pSel = MultiSelection(); + } + else + uRow.nSel = BROWSER_ENDOFSELECTION; nCurRow = BROWSER_ENDOFSELECTION; nTopRow = 0; nCurColId = 0; |