summaryrefslogtreecommitdiffstats
path: root/src/sp-style-elem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-style-elem.cpp')
-rw-r--r--src/sp-style-elem.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-style-elem.cpp b/src/sp-style-elem.cpp
index ac5d767f7..e130b677b 100644
--- a/src/sp-style-elem.cpp
+++ b/src/sp-style-elem.cpp
@@ -7,6 +7,16 @@
#include "style.h"
using Inkscape::XML::TEXT_NODE;
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createStyle() {
+ return new SPStyleElem();
+ }
+
+ bool styleRegistered = SPFactory::instance().registerObject("svg:style", createStyle);
+}
+
G_DEFINE_TYPE(SPStyleElem, sp_style_elem, G_TYPE_OBJECT);
static void