summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxed.cxx
diff options
context:
space:
mode:
authormatteocam <matteo.campanelli@gmail.com>2015-08-21 00:17:35 +0200
committermatteocam <matteo.campanelli@gmail.com>2015-08-21 00:20:07 +0200
commitcd6a213f09aebf552624924f210190ffac32b8d3 (patch)
treea8289f18e90e9d3abe938a41aa6381fa8529017e /svx/source/svdraw/svdotxed.cxx
parentf73c004358ca3eada9ae57f44fdb1cf85d78fa47 (diff)
Don't use SetOutlinerParaObject if we are switching to next box
Change-Id: I685252094e90ee26d99d5852a63cf6dcb3dabaa8
Diffstat (limited to 'svx/source/svdraw/svdotxed.cxx')
-rw-r--r--svx/source/svdraw/svdotxed.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdotxed.cxx b/svx/source/svdraw/svdotxed.cxx
index 0366545f00c2..dfcbae869f78 100644
--- a/svx/source/svdraw/svdotxed.cxx
+++ b/svx/source/svdraw/svdotxed.cxx
@@ -290,7 +290,13 @@ void SdrTextObj::EndTextEdit(SdrOutliner& rOutl)
// uses GetCurrentBoundRect() which needs to take the text into account
// to work correct
mbInEditMode = false;
- SetOutlinerParaObject(pNewText);
+ // We don't want broadcasting if we are merely trying to move to next box (this prevents infinite loops)
+ if (IsChainable() && GetTextChain()->GetSwitchingToNextBox(this)) {
+ GetTextChain()->SetSwitchingToNextBox(this, false);
+ NbcSetOutlinerParaObject(pNewText);
+ } else {
+ SetOutlinerParaObject(pNewText);
+ }
}
/* Beginning Chaining-related code */