From c650658fe23eae895ca1e0383d5a8c591eb4dd09 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 29 Nov 2018 23:49:29 +0000 Subject: weld SwGlossaryGroupDlg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I142123b474e0e35f6da375977e33d40e0ad39054 Reviewed-on: https://gerrit.libreoffice.org/64324 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/source/app/salvtables.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index d9cdc5e0a63f..e61980febe35 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -1862,6 +1862,8 @@ public: for (size_t i = 0; i < rWidths.size(); ++i) pHeaderBar->SetItemSize(pHeaderBar->GetItemId(i), rWidths[i]); } + // call Resize to recalculate based on the new tabs + m_xTreeView->Resize(); } virtual OUString get_column_title(int nColumn) const override @@ -1933,7 +1935,7 @@ public: { for (SvTreeListEntry* pEntry = m_xTreeView->First(); pEntry; pEntry = m_xTreeView->Next(pEntry)) { - if (m_xTreeView->GetEntryText(pEntry) == rText) + if (SvTabListBox::GetEntryText(pEntry, 0) == rText) return m_xTreeView->GetAbsPos(pEntry); } return -1; @@ -2245,7 +2247,7 @@ public: virtual OUString get_text(const weld::TreeIter& rIter) const override { const SalInstanceTreeIter& rVclIter = static_cast(rIter); - return m_xTreeView->GetEntryText(rVclIter.iter); + return SvTabListBox::GetEntryText(rVclIter.iter, 0); } virtual OUString get_id(const weld::TreeIter& rIter) const override @@ -2283,6 +2285,7 @@ public: virtual void make_sorted() override { m_xTreeView->SetStyle(m_xTreeView->GetStyle() | WB_SORT); + m_xTreeView->GetModel()->Resort(); } SvTabListBox& getTreeView() -- cgit