diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-12 14:16:11 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-12 13:16:30 +0000 |
commit | 71aed9185fb17ee27bdc38b4ac650713c4cabb8b (patch) | |
tree | 13340030fb986a99fd53b01b5fcdcbf72974b7ad | |
parent | 5945659d8ddc3ca6bb5912965e13d609a36ff003 (diff) |
tdf#93384 editeng rendercontext: don't paint spellcheck result directly
E.g. in Writer create a new comment, type a word that is not in the
dictionary, then a space to trigger the spelling, and that painted the
spelling error indicator outside Paint().
Change-Id: I8f72486189e04a5596729fb52b6af39772f8e002
Reviewed-on: https://gerrit.libreoffice.org/17671
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 4f4045cfe72e..fcc47af2161c 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2407,8 +2407,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC { // convert to window coordinates .... aClipRect.SetPos( pView->pImpEditView->GetWindowPos( aClipRect.TopLeft() ) ); - // If selected, then VDev ... - Paint( pView->pImpEditView, aClipRect, 0, pView->HasSelection() ); + pView->pImpEditView->GetWindow()->Invalidate(aClipRect); } } } |