diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-10-05 13:31:33 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-10-05 13:31:33 +0000 |
| commit | f5651cf5d63c5eb3bfc0710f2ff399e3627a963c (patch) | |
| tree | a1ddf72d6393596ce0d1f0d5dfdf87dc6b0e72a0 /src/style.cpp | |
| parent | CI/AppVeyor: Try to avoid some redundant builds (diff) | |
| download | inkscape-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.cpp | 10 |
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(); |
