summaryrefslogtreecommitdiff
path: root/sw/source/core/fields/postithelper.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-06-09 23:48:25 +0200
committerMichael Stahl <mstahl@redhat.com>2017-06-10 00:10:46 +0200
commit2d2af57bc0406cd3afd376dd3c92be112b8c9603 (patch)
treee8c800ebbb6bb78d291ec2399e22d6b5cd155c4e /sw/source/core/fields/postithelper.cxx
parentd76fa3f5a5ae1d781ddd7457607a5773373d4f01 (diff)
sw: DisableCallbackAction in a bunch more places
... to prevent recursive layout. Change-Id: I4a7cdcebe77bd7d8d16c721765ad5eb171e84619
Diffstat (limited to 'sw/source/core/fields/postithelper.cxx')
-rw-r--r--sw/source/core/fields/postithelper.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index cfe556c76e56..8da466867d28 100644
--- a/sw/source/core/fields/postithelper.cxx
+++ b/sw/source/core/fields/postithelper.cxx
@@ -60,7 +60,10 @@ SwPostItHelper::SwLayoutStatus SwPostItHelper::getLayoutInfos(
aRet = VISIBLE;
o_rInfo.mpAnchorFrame = pTextFrame;
- pTextFrame->GetCharRect(o_rInfo.mPosition, rAnchorPos, nullptr, false);
+ {
+ DisableCallbackAction a(*pTextFrame->getRootFrame());
+ pTextFrame->GetCharRect(o_rInfo.mPosition, rAnchorPos, nullptr, false);
+ }
if ( pAnnotationStartPos != nullptr )
{
o_rInfo.mnStartNodeIdx = pAnnotationStartPos->nNode.GetIndex();