summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-06-11 13:18:45 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-06-12 00:27:47 +0200
commit7aaa7212f2f37606b34d44a039398f05c02d5660 (patch)
tree07c876818883f2656978870cbd158562e343631b /vcl
parent593cb90d5846f1c94ef209b6f0cd9b318c89ee65 (diff)
tdf#125814 sc autofilter popup: perform non-partial paint on entry invalidate
... in the double-buffering case. Commit a4cb27f61376d8f2d8faed0022c291af68d437bd (refactor ScMenuFloatingWindow to use RenderContext, 2015-05-14) changed the partial paints to invalidate + full paint, so invalidate the whole treelist, this makes sure that no checkboxes go missing on mouse click. Change-Id: I43377b7e29d1cdfb43c60256bd57531a8251e2ed Reviewed-on: https://gerrit.libreoffice.org/73815 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svimpbox.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index c4b819ada619..e9b88fdf92b6 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -549,7 +549,11 @@ void SvImpLBox::InvalidateEntry( long nY ) const
return;
if( aRect.Bottom() > nMaxBottom )
aRect.SetBottom( nMaxBottom );
- m_pView->Invalidate( aRect );
+ if (m_pView->SupportsDoubleBuffering())
+ // Perform full paint when flicker is to be avoided explicitly.
+ m_pView->Invalidate();
+ else
+ m_pView->Invalidate(aRect);
}
}