Kaydet (Commit) 8cbf84ed authored tarafından Noel Grandin's avatar Noel Grandin

fix bug in SwSpellDialogChildWindow::FindNextDrawTextError_Impl

looks like a regression from
    commit de60fd06
    Date:   Fri Dec 17 09:02:23 2010 +0100
    CWS swlayoutrefactoring: #i115510#: first step to clean up the
SwClient mess

Change-Id: Ifc1d3e3f87b4b0d48fc5f311086bb5404b0aa1fb
Reviewed-on: https://gerrit.libreoffice.org/52614Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d913b7d2
......@@ -739,14 +739,13 @@ bool SwSpellDialogChildWindow::FindNextDrawTextError_Impl(SwWrtShell& rSh)
if(!m_pSpellState->m_bTextObjectsCollected )
{
m_pSpellState->m_bTextObjectsCollected = true;
std::list<SdrTextObj*> aTextObjs;
SwDrawContact::GetTextObjectsFromFormat( aTextObjs, pDoc );
SwDrawContact::GetTextObjectsFromFormat( m_pSpellState->m_aTextObjects, pDoc );
if(pCurrentTextObj)
{
m_pSpellState->m_aTextObjects.remove(pCurrentTextObj);
m_pSpellState->m_aTextObjects.push_back(pCurrentTextObj);
}
}
}
}
if(!m_pSpellState->m_aTextObjects.empty())
{
Reference< XSpellChecker1 > xSpell( GetSpellChecker() );
......
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