summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-20 09:26:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-20 12:51:56 +0200
commit948b1c6ae3f7a647b8761e8015280ebe283a3f98 (patch)
treef6367c88939d6a46040ab1818875d700e52adda8 /editeng
parentfix crash with non-window outputdevice better (diff)
downloadcore-948b1c6ae3f7a647b8761e8015280ebe283a3f98.tar.gz
core-948b1c6ae3f7a647b8761e8015280ebe283a3f98.zip
InvalidateAtWindow should be preferred
it already call GetWindow()->Invalidate(aClipRect) internally for the usual case, and correctly calls EditViewInvalidate when the editview is not used in a vcl::Window Change-Id: I9f985cb91bc768b410838289efc994d9a5b249d4 Reviewed-on: https://gerrit.libreoffice.org/74422 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index d3f23c6ff786..d285629f7c00 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2352,7 +2352,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC
{
// convert to window coordinates ....
aClipRect.SetPos( pView->pImpEditView->GetWindowPos( aClipRect.TopLeft() ) );
- pView->pImpEditView->GetWindow()->Invalidate(aClipRect);
+ pView->pImpEditView->InvalidateAtWindow(aClipRect);
}
}
}