Kaydet (Commit) 238e07dd authored tarafından Michael Stahl's avatar Michael Stahl

tdf#91917 tdf#91602: avoid layout recursion differently

(regression from 587006ca)

Change-Id: I38e00a7469243088e25aa1a91e3581240b3bbdea
üst a9ff587f
......@@ -284,10 +284,6 @@ void SwCrsrShell::EndAction( const bool bIdleEnd, const bool DoSetPosX )
}
return;
}
else
{
eFlags |= SwCrsrShell::NOCALRECT; // tdf#91602 prevent recursive Action!
}
if ( !bIdleEnd )
eFlags |= SwCrsrShell::SCROLLWIN;
......@@ -1744,12 +1740,14 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
aTmpState.pSpecialPos = &aSpecialPos;
}
++mnStartAction; // tdf#91602 prevent recursive Action!
if( !pFrm->GetCharRect( m_aCharRect, *pShellCrsr->GetPoint(), &aTmpState ) )
{
Point& rPt = pShellCrsr->GetPtPos();
rPt = m_aCharRect.Center();
pFrm->GetCrsrOfst( pShellCrsr->GetPoint(), rPt, &aTmpState );
}
--mnStartAction;
if( !pShellCrsr->HasMark() )
m_aCrsrHeight = aTmpState.aRealHeight;
......
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