From d1af3566872dfff2aeec84859c87f1f8d13f79df Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 2 Apr 2013 19:14:36 +0200 Subject: Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewritten, as they aren't real classes. (bzr r11608.1.69) --- src/sp-polyline.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/sp-polyline.cpp') diff --git a/src/sp-polyline.cpp b/src/sp-polyline.cpp index 83d1265df..efa2bf874 100644 --- a/src/sp-polyline.cpp +++ b/src/sp-polyline.cpp @@ -20,6 +20,15 @@ #include "xml/repr.h" #include "document.h" +#include "sp-factory.h" + +namespace { + SPObject* createPolyLine() { + return new SPPolyLine(); + } + + bool polyLineRegistered = SPFactory::instance().registerObject("svg:polyline", createPolyLine); +} G_DEFINE_TYPE(SPPolyLine, sp_polyline, G_TYPE_OBJECT); -- cgit v1.2.3