diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2023-04-09 00:23:46 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2023-04-09 20:44:15 +0200 |
commit | 1e79befa61a08de7a1ddaccb6c435dbb8015c063 (patch) | |
tree | 9e3581265c77214a52f47a409f5a966ba4d674aa /sc | |
parent | d7910847fba1694c83dc57a1f27b8eaabb2a7d85 (diff) |
sc drawstyles: Use display name to find comment styles
Change-Id: I3f56fd4bdb914da336927385e6c0ca76f1c871ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150163
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/postit.cxx | 3 |
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(); |