diff options
Diffstat (limited to 'vcl/source/app/salvtables.cxx')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index e68e3818dcbc..66b49964a003 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -2947,9 +2947,8 @@ public: return aRows; } - virtual OUString get_text(int pos, int col) const override + static OUString get_text(SvTreeListEntry* pEntry, int col) { - SvTreeListEntry* pEntry = m_xTreeView->GetEntry(nullptr, pos); if (col == -1) return SvTabListBox::GetEntryText(pEntry, 0); @@ -2964,6 +2963,12 @@ public: return static_cast<SvLBoxString&>(rItem).GetText(); } + virtual OUString get_text(int pos, int col) const override + { + SvTreeListEntry* pEntry = m_xTreeView->GetEntry(nullptr, pos); + return get_text(pEntry, col); + } + void set_text(SvTreeListEntry* pEntry, const OUString& rText, int col) { if (col == -1) @@ -3407,11 +3412,7 @@ public: virtual OUString get_text(const weld::TreeIter& rIter, int col) const override { const SalInstanceTreeIter& rVclIter = static_cast<const SalInstanceTreeIter&>(rIter); - - if (col == -1) - col = 0xffff; - - return SvTabListBox::GetEntryText(rVclIter.iter, col); + return get_text(rVclIter.iter, col); } virtual void set_text(const weld::TreeIter& rIter, const OUString& rText, int col) override |