svtools/source/brwbox/brwbox1.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 554710d39029b1ddf244d55fc6b464a8a896ea6a
Author: Lionel Elie Mamane <lio...@mamane.lu>
Date:   Tue Jan 14 18:44:24 2014 +0100

    fdo#51180 reset (Multi)Selection on Clear()
    
    Change-Id: I06dde63093eab4e5e1c692f6363aca70b89de96a
    Reviewed-on: https://gerrit.libreoffice.org/7430
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>
    Tested-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/svtools/source/brwbox/brwbox1.cxx 
b/svtools/source/brwbox/brwbox1.cxx
index 23f418d..d165c00 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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to