Code

Fix for sp-style-elem-test to make it work again with new code.
authorjaspervdg <jaspervdg@users.sourceforge.net>
Fri, 20 Jun 2008 11:09:25 +0000 (11:09 +0000)
committerjaspervdg <jaspervdg@users.sourceforge.net>
Fri, 20 Jun 2008 11:09:25 +0000 (11:09 +0000)
src/sp-style-elem-test.h

index 755fe4418af9295cf9b89f59bf1300fa56ae8f34..0eaf12e3388b23b30096df988ad564f1819f1094 100644 (file)
@@ -84,7 +84,7 @@ public:
 
         sp_object_set(SP_OBJECT(style_elem), SP_ATTR_TYPE, "text/css");
         Inkscape::XML::Node *repr = sp_document_repr_doc(_doc)->createElement("svg:style");
-        SP_OBJECT(style_elem)->updateRepr(repr, SP_OBJECT_WRITE_ALL);
+        SP_OBJECT(style_elem)->updateRepr(sp_document_repr_doc(_doc), repr, SP_OBJECT_WRITE_ALL);
         {
             gchar const *typ = repr->attribute("type");
             TS_ASSERT( typ != NULL );