summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-10-05 13:31:33 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-10-05 13:31:33 +0000
commitf5651cf5d63c5eb3bfc0710f2ff399e3627a963c (patch)
treea1ddf72d6393596ce0d1f0d5dfdf87dc6b0e72a0 /src/style.cpp
parentCI/AppVeyor: Try to avoid some redundant builds (diff)
downloadinkscape-f5651cf5d63c5eb3bfc0710f2ff399e3627a963c.tar.gz
inkscape-f5651cf5d63c5eb3bfc0710f2ff399e3627a963c.zip
fix 1795942 "object to path" uses outdated state
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/style.cpp b/src/style.cpp
index a4f567354..6d86e6a96 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -499,6 +499,16 @@ SPStyle::~SPStyle() {
}
void
+SPStyle::clear(/* SPAttributeEnum */ int id) {
+ SPIBase *p = _prop_helper.get(this, (SPAttributeEnum)id);
+ if (p) {
+ p->clear();
+ } else {
+ g_warning("Unimplemented style property %d", id);
+ }
+}
+
+void
SPStyle::clear() {
for (auto * p : _properties) {
p->clear();