summaryrefslogtreecommitdiffstats
path: root/src/sp-glyph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-glyph.cpp')
-rw-r--r--src/sp-glyph.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-glyph.cpp b/src/sp-glyph.cpp
index 2ab62c575..85c7beb4f 100644
--- a/src/sp-glyph.cpp
+++ b/src/sp-glyph.cpp
@@ -22,6 +22,16 @@
#include "document.h"
#include <cstring>
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createGlyph() {
+ return new SPGlyph();
+ }
+
+ bool glyphRegistered = SPFactory::instance().registerObject("svg:glyph", createGlyph);
+}
+
G_DEFINE_TYPE(SPGlyph, sp_glyph, G_TYPE_OBJECT);
static void sp_glyph_class_init(SPGlyphClass *gc)