[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - svtools/source

Caolán McNamara caolanm at redhat.com
Mon Feb 11 00:51:27 PST 2013


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

New commits:
commit 4ded3c56534770e76108befec0d25c9db9e25f16
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
    (cherry picked from commit dde8e266084c89860a9a91f2a29ac31b730a9c4a)
    Reviewed-on: https://gerrit.libreoffice.org/2093
    Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
    Tested-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index d0125f4..43968c5 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -1583,6 +1583,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