summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/postit.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 6da509043c12..74bd5a22adbd 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -48,6 +48,7 @@
#include <document.hxx>
#include <docpool.hxx>
#include <stlpool.hxx>
+#include <stylehelper.hxx>
#include <patattr.hxx>
#include <drwlayer.hxx>
#include <userdat.hxx>
@@ -923,7 +924,7 @@ ScPostIt* ScNoteUtil::CreateNoteFromObjectData(
ScCaptionInitData& rInitData = *aNoteData.mxInitData;
rInitData.moItemSet.emplace(std::move(rItemSet));
rInitData.mxOutlinerObj = rOutlinerObj;
- rInitData.maStyleName = rStyleName;
+ rInitData.maStyleName = ScStyleNameConversion::ProgrammaticToDisplayName(rStyleName, SfxStyleFamily::Frame);
// convert absolute caption position to relative position
rInitData.mbDefaultPosSize = rCaptionRect.IsEmpty();