summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-11-21 12:32:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-11-21 15:49:54 +0100
commite37b7e8a4730fad470b0b5daa0ab2bf905edc3a5 (patch)
tree29dca15503db2161a145ff150b6672a9af74ca48 /basctl
parent02b905c8569e2d7631efd61008b4ab0e9353d994 (diff)
processing treeview entries in the wrong order
Change-Id: Ica2240750273996a84ebcf0b8c089aedbbc6c913 Reviewed-on: https://gerrit.libreoffice.org/63711 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastype3.cxx3
1 files changed, 1 insertions, 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<std::pair<Entry*, OUString>> aEntries;
- m_xControl->get_text(*pEntry);
std::unique_ptr<weld::TreeIter> 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;