summaryrefslogtreecommitdiffstats
path: root/src/sp-item-group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-item-group.cpp')
-rw-r--r--src/sp-item-group.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp
index 0dbb078dd..10e84f2da 100644
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
@@ -57,6 +57,16 @@ static void sp_group_dispose(GObject *object);
static void sp_group_perform_patheffect(SPGroup *group, SPGroup *topgroup, bool write);
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createGroup() {
+ return new SPGroup();
+ }
+
+ bool groupRegistered = SPFactory::instance().registerObject("svg:g", createGroup);
+}
+
G_DEFINE_TYPE(SPGroup, sp_group, G_TYPE_OBJECT);
static void