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

sw: use DisableCallbackAction here also

This should also fix tdf#91602 and appears more consistent.

Change-Id: Ic0a227d01f45b01b5cfb511d12b71b3b3aa84a05
üst 2ca0360a
...@@ -1764,14 +1764,15 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool bIdleEnd ) ...@@ -1764,14 +1764,15 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool bIdleEnd )
aTmpState.m_pSpecialPos = &aSpecialPos; aTmpState.m_pSpecialPos = &aSpecialPos;
} }
++mnStartAction; // tdf#91602 prevent recursive Action!
if( !pFrame->GetCharRect( m_aCharRect, *pShellCursor->GetPoint(), &aTmpState ) )
{ {
Point& rPt = pShellCursor->GetPtPos(); DisableCallbackAction a(*GetLayout()); // tdf#91602 prevent recursive Action
rPt = m_aCharRect.Center(); if (!pFrame->GetCharRect(m_aCharRect, *pShellCursor->GetPoint(), &aTmpState))
pFrame->GetCursorOfst( pShellCursor->GetPoint(), rPt, &aTmpState ); {
Point& rPt = pShellCursor->GetPtPos();
rPt = m_aCharRect.Center();
pFrame->GetCursorOfst( pShellCursor->GetPoint(), rPt, &aTmpState );
}
} }
--mnStartAction;
UISizeNotify(); // tdf#96256 update view size UISizeNotify(); // tdf#96256 update view size
if( !pShellCursor->HasMark() ) if( !pShellCursor->HasMark() )
......
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