summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-01-14 18:44:24 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2014-01-14 18:54:09 +0100
commit6036ae611e3667a07d7239857e2d6955f7292810 (patch)
tree850243ae7c7ea2ad5aa3192e46bccdbd4d5b4e02 /svtools
parentd9d6c67c76e5b41e45330983a98f58ea288a30e9 (diff)
fdo#51180 reset (Multi)Selection on Clear()
Change-Id: I06dde63093eab4e5e1c692f6363aca70b89de96a
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 47d5c01c6c0e..1f169165a3ad 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;