editeng/source/editeng/impedit2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 79e6e4eef098d841eb639f21a905b10bc5db7d56
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Jun 19 16:07:43 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Jun 20 09:57:30 2019 +0200

    InvalidateWindow should be preferred
    
    it already call View::GetWindow()->Invalidate internally
    for the usual case, and correctly calls EditViewInvalidate
    when the editview is not used in a vcl::Window
    
    Change-Id: Ic83150117a8738ce5c6f34875057fd743bdb173a
    Reviewed-on: https://gerrit.libreoffice.org/74366
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/editeng/source/editeng/impedit2.cxx 
b/editeng/source/editeng/impedit2.cxx
index 472a3d78de14..d3d67e76d3d1 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -672,7 +672,7 @@ void ImpEditEngine::SetText(const OUString& rText)
             tools::Rectangle aTmpRect( pView->GetOutputArea().TopLeft(),
                                 Size( aPaperSize.Width(), nCurTextHeight ) );
             aTmpRect.Intersection( pView->GetOutputArea() );
-            pView->GetWindow()->Invalidate( aTmpRect );
+            pView->InvalidateWindow( aTmpRect );
         }
     }
     if (rText.isEmpty()) {    // otherwise it must be invalidated later, 
!bFormatted is enough.
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to