From d07f7a584ecfbb026421dc2d3b9b984a696409f2 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Mon, 23 Sep 2013 22:22:43 +0200 Subject: Added missing registration of FeDistantLight; made sure warnings on missing types are always issued. Fixed bugs: - https://launchpad.net/bugs/1229326 (bzr r12580) --- src/filters/distantlight.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/filters') diff --git a/src/filters/distantlight.cpp b/src/filters/distantlight.cpp index 8b6ef023b..bd8bd2797 100644 --- a/src/filters/distantlight.cpp +++ b/src/filters/distantlight.cpp @@ -29,6 +29,18 @@ #define SP_MACROS_SILENT #include "macros.h" + +#include "sp-factory.h" + +namespace { + SPObject* createDistantLight() { + return new SPFeDistantLight(); + } + + bool distantLightRegistered = SPFactory::instance().registerObject("svg:feDistantLight", createDistantLight); +} + + SPFeDistantLight::SPFeDistantLight() : SPObject(), azimuth(0), azimuth_set(FALSE), elevation(0), elevation_set(FALSE) { } -- cgit v1.2.3