From f5651cf5d63c5eb3bfc0710f2ff399e3627a963c Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Fri, 5 Oct 2018 13:31:33 +0000 Subject: fix 1795942 "object to path" uses outdated state --- src/style.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/style.cpp') diff --git a/src/style.cpp b/src/style.cpp index a4f567354..6d86e6a96 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -498,6 +498,16 @@ SPStyle::~SPStyle() { // std::cout << "SPStyle::~SPStyle(): Exit\n" << std::endl; } +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) { -- cgit v1.2.3