summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/postit.cxx3
-rw-r--r--svx/source/svdraw/svdotxat.cxx3
2 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index bafd2e9e901b..f826e1d66478 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -382,6 +382,9 @@ void ScCaptionCreator::CreateCaption( bool bShown, bool bTailFront )
*mrDoc.GetDrawLayer(), // TTTT should ret a ref?
aTextRect,
aTailPos));
+ // tdf#114956 a way to recognize that this SdrCaption is for a ScPostit in
+ // SdrTextObj::AdjustTextFrameWidthAndHeight
+ mxCaption->SetName("ScPostIt");
// basic caption settings
ScCaptionUtil::SetBasicCaptionSettings( *mxCaption, bShown );
}
diff --git a/svx/source/svdraw/svdotxat.cxx b/svx/source/svdraw/svdotxat.cxx
index 7c4548a2ef8d..4b96bb04c12a 100644
--- a/svx/source/svdraw/svdotxat.cxx
+++ b/svx/source/svdraw/svdotxat.cxx
@@ -278,7 +278,8 @@ bool SdrTextObj::AdjustTextFrameWidthAndHeight()
GetTextEditOutliner() &&
GetTextEditOutliner()->hasEditViewCallbacks());
- if (!bSuppressChangeWhenEditOnOverlay)
+ // tdf#114956 always broadcast change for ScPostIts
+ if (!bSuppressChangeWhenEditOnOverlay || GetName() == "ScPostIt")
{
SetChanged();
BroadcastObjectChange();