[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - editeng/source sw/source

Miklos Vajna vmiklos at collabora.co.uk
Thu Aug 13 03:04:59 PDT 2015


 editeng/source/editeng/impedit4.cxx |    3 +--
 sw/source/core/view/viewsh.cxx      |    4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit bc4904aba89bcbe267ca705ff76fc9d8629f73a3
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().
    
    (cherry picked from commits 71aed9185fb17ee27bdc38b4ac650713c4cabb8b and
    89bd30cf426ca54fc9e46295a60551b5bb2d3232)
    
    Change-Id: I8f72486189e04a5596729fb52b6af39772f8e002
    Reviewed-on: https://gerrit.libreoffice.org/17690
    Tested-by: Jenkins <ci at libreoffice.org>
    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 8cd007a..0c26682 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2414,8 +2414,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);
                             }
                         }
                     }
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index b934e76..9cb6941 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1677,8 +1677,8 @@ public:
             rtl::Reference<sdr::overlay::OverlayManager> xOldManager = pOldPaintWindow->GetOverlayManager();
             if (xOldManager.is())
             {
-                SdrPaintWindow* pNewPaintWindow = m_pShell->Imp()->GetDrawView()->FindPaintWindow(*m_pRef);
-                xOldManager->completeRedraw(pNewPaintWindow->GetRedrawRegion(), m_pRef);
+                if (SdrPaintWindow* pNewPaintWindow = m_pShell->Imp()->GetDrawView()->FindPaintWindow(*m_pRef))
+                    xOldManager->completeRedraw(pNewPaintWindow->GetRedrawRegion(), m_pRef);
             }
 
             m_pShell->Imp()->GetDrawView()->DeleteWindowFromPaintView(m_pRef);


More information about the Libreoffice-commits mailing list