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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 20 13:15:37 UTC 2019


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

New commits:
commit ccc0e03dcfaceeb4f729c959373853d24154de77
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 20 09:26:12 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jun 20 15:14:28 2019 +0200

    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/74421
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 0f77bd55f54f..ae1513cf6d8b 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2353,7 +2353,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);
                             }
                         }
                     }


More information about the Libreoffice-commits mailing list