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:50:12 +0100
commit1bc87d298c3fa70716ce7382c3959ce385e2c25e (patch)
tree0b6d8f0d8394df0c871ed3519b2a0bd83574de48 /basctl
parentd6102e05a1efe9eca9d72caac9cddca78ced4bfe (diff)
processing treeview entries in the wrong order
Change-Id: Ica2240750273996a84ebcf0b8c089aedbbc6c913 Reviewed-on: https://gerrit.libreoffice.org/63712 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 f2d23347afc0..cc055771969d 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -559,9 +559,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
{
@@ -593,6 +591,7 @@ EntryDescriptor SbTreeListBox::GetEntryDescriptor(weld::TreeIter* pEntry)
if ( !aEntries.empty() )
{
+ std::reverse(aEntries.begin(), aEntries.end());
for (auto& pair : aEntries)
{
Entry* pBE = pair.first;