summaryrefslogtreecommitdiffstats
path: root/sc/source/core/data/postit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-01 09:09:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-01 15:57:34 +0100
commit77670f84c1148d15ab9a34c4db150e87ad9949eb (patch)
tree9fbcae95db84237f4b0dae425869249302c649e7 /sc/source/core/data/postit.cxx
parenttdf#138130, tdf#123621 sw: fix textbox position according to DOCX (diff)
downloadcore-77670f84c1148d15ab9a34c4db150e87ad9949eb.tar.gz
core-77670f84c1148d15ab9a34c4db150e87ad9949eb.zip
Resolves: tdf#138549 use GetSpecialTextBoxShadow to identify ScPostIt
instead of a 'special' name which causes undo-related causes side effects Change-Id: Id36b0b5360ddde3469721a7c837fe3942af08209 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106938 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/postit.cxx')
-rw-r--r--sc/source/core/data/postit.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 92221fe87430..d0ac658f3e35 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -382,17 +382,6 @@ 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
- SdrModel& rModel = mxCaption->getSdrModelFromSdrObject();
- const bool bUndoEnabled = rModel.IsUndoEnabled();
- if (bUndoEnabled)
- rModel.EnableUndo(false);
- mxCaption->SetName("ScPostIt");
- if (bUndoEnabled)
- rModel.EnableUndo(true);
-
// basic caption settings
ScCaptionUtil::SetBasicCaptionSettings( *mxCaption, bShown );
}