diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-06-09 23:48:25 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-06-10 00:10:46 +0200 |
commit | 2d2af57bc0406cd3afd376dd3c92be112b8c9603 (patch) | |
tree | e8c800ebbb6bb78d291ec2399e22d6b5cd155c4e /sw/source/core/fields/postithelper.cxx | |
parent | d76fa3f5a5ae1d781ddd7457607a5773373d4f01 (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.cxx | 5 |
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(); |