[Libreoffice-commits] core.git: svtools/source

Caolán McNamara caolanm at redhat.com
Sun Feb 10 13:37:45 PST 2013


 svtools/source/contnr/treelist.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit dde8e266084c89860a9a91f2a29ac31b730a9c4a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Feb 10 21:34:31 2013 +0000

    resorted SvTreeLists munged horribly
    
    e.g. tools->options->paths, click the sort icon, reclick it few
    times and the list doesn't reverse but instead shows the
    same two entries over and over again.
    
    Regression since fb01d8e132ab9097ed30b3bc4c7585622df591ad
    
    Change-Id: Ifc151ad72a27f1cdc3141e356ad6d100e6219cc2

diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index 90a03d2..307d861 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -1554,6 +1554,7 @@ void SvTreeList::ResortChildren( SvTreeListEntry* pParent )
             // Recursively sort child entries.
             ResortChildren(p);
     }
+    SetListPositions(pParent->maChildren); // correct list position in target list
 }
 
 void SvTreeList::GetInsertionPos( SvTreeListEntry* pEntry, SvTreeListEntry* pParent,


More information about the Libreoffice-commits mailing list