X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fextension%2Fpatheffect.cpp;h=e45d0b25504950b68e4f52e8373ee7945c174c8d;hb=78023b76d7395f1b2dc1c64e1e7ad538be13c62c;hp=f6ff273fa98509ccd7adea6380308696bba07fa9;hpb=b5b0c38fbc21788ae2f9640539ed5d5a5a22ccfe;p=inkscape.git 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];