summaryrefslogtreecommitdiffstats
path: root/src/sp-path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-path.cpp')
-rw-r--r--src/sp-path.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp
index 132415e51..bc6a2cb21 100644
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
@@ -51,6 +51,17 @@
#define noPATH_VERBOSE
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createPath() {
+ return new SPPath();
+ }
+
+ bool pathRegistered = SPFactory::instance().registerObject("svg:path", createPath);
+}
+
+
static void sp_path_finalize(GObject *obj);
G_DEFINE_TYPE(SPPath, sp_path, G_TYPE_OBJECT);