vcl/source/treelist/svimpbox.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 9d7fdcd6b5c7b5a9fe781bb99b135fba7d04ddec
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Mar 19 11:51:26 2020 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Mar 19 13:59:37 2020 +0100

    redraw problems seen on scroll in SvTreeListBox
    
    SvTreeListBox::Invalidate override Control::Invalidate and additionally 
calls
    Invalidate on its SvImpLBox pImpl which calls SetClipRegion on m_pView 
which is
    the original SvTreeListBox, which is all very confusing, revert 
SvTreeListBox
    to how it ~always was.
    
    Change-Id: I03cf89e7ed7cf0069cc70d4250a3bb797e3487e7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90745
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 50672b26f820..bc407216a696 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -394,11 +394,13 @@ void SvImpLBox::PageDown( sal_uInt16 nDelta )
     ShowCursor( false );
 
     m_nFlags &= ~LBoxFlags::Filling;
+    m_pView->Update();
     m_pStartEntry = pNext;
 
     if( nRealDelta >= m_nVisibleCount )
     {
         m_pView->Invalidate( GetVisibleArea() );
+        m_pView->Update();
     }
     else
     {
@@ -430,10 +432,12 @@ void SvImpLBox::PageUp( sal_uInt16 nDelta )
     m_nFlags &= ~LBoxFlags::Filling;
     ShowCursor( false );
 
+    m_pView->Update();
     m_pStartEntry = pPrev;
     if( nRealDelta >= m_nVisibleCount )
     {
         m_pView->Invalidate( GetVisibleArea() );
+        m_pView->Update();
     }
     else
     {
@@ -3264,6 +3268,7 @@ IMPL_LINK(SvImpLBox, MyUserEvent, void*, pArg, void )
     if( !pArg )
     {
         m_pView->Invalidate();
+        m_pView->Update();
     }
     else
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to