diff options
Diffstat (limited to 'sc/source/core/data/postit.cxx')
-rw-r--r-- | sc/source/core/data/postit.cxx | 11 |
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 ); } |