diff options
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(); |
