From: gouldtj Date: Sat, 6 May 2006 16:03:52 +0000 (+0000) Subject: r11761@tres: ted | 2006-05-06 08:59:32 -0700 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=755ee1d5c906686aa58d0f5bdf0ec09b27fa5e32;p=inkscape.git r11761@tres: ted | 2006-05-06 08:59:32 -0700 Fixing and uninitialized warning. --- diff --git a/src/extension/patheffect.cpp b/src/extension/patheffect.cpp index f6ff273fa..e45d0b255 100644 --- a/src/extension/patheffect.cpp +++ b/src/extension/patheffect.cpp @@ -7,6 +7,9 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include "document-private.h" +#include "sp-object.h" + #include "patheffect.h" #include "db.h" @@ -39,7 +42,7 @@ PathEffect::processPathEffects (SPDocument * doc, Inkscape::XML::Node * path) return; gchar ** patheffects = g_strsplit(patheffectlist, ";", 128); - Inkscape::XML::Node * defs; + Inkscape::XML::Node * defs = SP_OBJECT_REPR(SP_DOCUMENT_DEFS(doc)); for (int i = 0; patheffects[i] != NULL && i < 128; i++) { gchar * patheffect = patheffects[i];