Kaydet (Commit) bc4904ab authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Caolán McNamara

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 71aed918 and
89bd30cf)

Change-Id: I8f72486189e04a5596729fb52b6af39772f8e002
Reviewed-on: https://gerrit.libreoffice.org/17690Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 8f1d6909
...@@ -2414,8 +2414,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC ...@@ -2414,8 +2414,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC
{ {
// convert to window coordinates .... // convert to window coordinates ....
aClipRect.SetPos( pView->pImpEditView->GetWindowPos( aClipRect.TopLeft() ) ); aClipRect.SetPos( pView->pImpEditView->GetWindowPos( aClipRect.TopLeft() ) );
// If selected, then VDev ... pView->pImpEditView->GetWindow()->Invalidate(aClipRect);
Paint( pView->pImpEditView, aClipRect, 0, pView->HasSelection() );
} }
} }
} }
......
...@@ -1677,8 +1677,8 @@ public: ...@@ -1677,8 +1677,8 @@ public:
rtl::Reference<sdr::overlay::OverlayManager> xOldManager = pOldPaintWindow->GetOverlayManager(); rtl::Reference<sdr::overlay::OverlayManager> xOldManager = pOldPaintWindow->GetOverlayManager();
if (xOldManager.is()) if (xOldManager.is())
{ {
SdrPaintWindow* pNewPaintWindow = m_pShell->Imp()->GetDrawView()->FindPaintWindow(*m_pRef); if (SdrPaintWindow* pNewPaintWindow = m_pShell->Imp()->GetDrawView()->FindPaintWindow(*m_pRef))
xOldManager->completeRedraw(pNewPaintWindow->GetRedrawRegion(), m_pRef); xOldManager->completeRedraw(pNewPaintWindow->GetRedrawRegion(), m_pRef);
} }
m_pShell->Imp()->GetDrawView()->DeleteWindowFromPaintView(m_pRef); m_pShell->Imp()->GetDrawView()->DeleteWindowFromPaintView(m_pRef);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment