From e37b7e8a4730fad470b0b5daa0ab2bf905edc3a5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Nov 2018 12:32:25 +0000 Subject: processing treeview entries in the wrong order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ica2240750273996a84ebcf0b8c089aedbbc6c913 Reviewed-on: https://gerrit.libreoffice.org/63711 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- basctl/source/basicide/bastype3.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx index d891994bf6e7..eeaf863d05cc 100644 --- a/basctl/source/basicide/bastype3.cxx +++ b/basctl/source/basicide/bastype3.cxx @@ -560,9 +560,7 @@ EntryDescriptor SbTreeListBox::GetEntryDescriptor(weld::TreeIter* pEntry) std::vector> aEntries; - m_xControl->get_text(*pEntry); std::unique_ptr xIter(m_xControl->make_iterator(pEntry)); - m_xControl->get_text(*xIter); bool bValidIter = true; do { @@ -594,6 +592,7 @@ EntryDescriptor SbTreeListBox::GetEntryDescriptor(weld::TreeIter* pEntry) if ( !aEntries.empty() ) { + std::reverse(aEntries.begin(), aEntries.end()); for (auto& pair : aEntries) { Entry* pBE = pair.first; -- cgit