diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-06-19 16:07:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-06-20 09:57:30 +0200 |
commit | 79e6e4eef098d841eb639f21a905b10bc5db7d56 (patch) | |
tree | 3fb7d625857c58ceea2ca4cff8c934262ab7d5f7 | |
parent | Colibre: Fix wrong master/page, remove uneccessary extra bold line (diff) | |
download | core-79e6e4eef098d841eb639f21a905b10bc5db7d56.tar.gz core-79e6e4eef098d841eb639f21a905b10bc5db7d56.zip |
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 <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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. |