summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2023-03-31 16:38:32 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2023-04-07 15:59:04 +0200
commit1e442e2c6800cf38e42749ac6644502cb3717bc3 (patch)
treeb1fcf2c9199baf46e5625d2bc2dd075dba0c0fe2 /svx
parent94ec3df7733dfbc5f48bc1d1a5f0578572749400 (diff)
sc drawstyles: Keep style assignment for comments
Need to handle 3 cases: - Import of hidden comments (not too much useful by itself, as we still force the default comment formatting as DF). - Copying cells with comments. - The comment popup that is shown when hovering over a comment marker. Change-Id: Ibf2e22f1432745fe46f89da624ed3586b5d9fb55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149943 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/properties/captionproperties.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svx/source/sdr/properties/captionproperties.cxx b/svx/source/sdr/properties/captionproperties.cxx
index 2f7a2c8a7f89..48106d18ef9d 100644
--- a/svx/source/sdr/properties/captionproperties.cxx
+++ b/svx/source/sdr/properties/captionproperties.cxx
@@ -94,6 +94,11 @@ namespace sdr::properties
// this was set by TextProperties::ForceDefaultAttributes(),
// reset to default
+ if (static_cast<SdrCaptionObj&>(GetSdrObject()).GetSpecialTextBoxShadow())
+ {
+ mxItemSet->ClearItem(XATTR_FILLCOLOR);
+ mxItemSet->ClearItem(XATTR_FILLSTYLE);
+ }
mxItemSet->ClearItem(XATTR_LINESTYLE);
}
} // end of namespace