summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-19 16:07:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-19 21:49:28 +0200
commita682d129a99791fd6d0c37d06bf17901bbabf5de (patch)
treeb98e978f7a13c6b2097e8627ccb924f3d3aa4919
parentce2d4017f11b5afa9ddda1fa7e81d4c710b1c367 (diff)
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/74365 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--editeng/source/editeng/impedit2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index eda0c2c0f374..bd3ad15d81a3 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -673,7 +673,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.