summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-30 20:38:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-31 11:27:54 +0200
commit824c0cb9b2c0d74c7eb76ce08169f7eae11e39d0 (patch)
tree553e5485a9a61c182c3246ffe5fbd78c4f7aa7de /vcl/source
parentc3d446522d0bd1ec0f1d9e0c4a83e3472eb108da (diff)
add queue_draw to force redraw with custom rendering
Change-Id: I19251835ff4d49e6240b322a37df5653db7d1b70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99822 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/salvtables.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index d84d657f86dc..37b6f595e178 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -3694,6 +3694,14 @@ public:
m_aCustomRenders.erase(nColumn);
}
+ virtual void queue_draw() override
+ {
+ // invalidate the entries
+ SvTreeList* pModel = m_xTreeView->GetModel();
+ for (SvTreeListEntry* pEntry = m_xTreeView->First(); pEntry; pEntry = m_xTreeView->Next(pEntry))
+ pModel->InvalidateEntry(pEntry);
+ }
+
virtual void show() override
{
if (LclHeaderTabListBox* pHeaderBox = dynamic_cast<LclHeaderTabListBox*>(m_xTreeView.get()))