From 79e6e4eef098d841eb639f21a905b10bc5db7d56 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 19 Jun 2019 16:07:43 +0100 Subject: InvalidateWindow should be preferred MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Caolán McNamara --- editeng/source/editeng/impedit2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit