[Libreoffice-commits] core.git: editeng/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Aug 12 06:16:52 PDT 2015


 editeng/source/editeng/impedit4.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 71aed9185fb17ee27bdc38b4ac650713c4cabb8b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Aug 12 14:16:11 2015 +0200

    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 at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 4f4045cfe..fcc47af 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);
                             }
                         }
                     }


More information about the Libreoffice-commits mailing list