diff options
| author | MenTaLguY <mental@rydia.net> | 2008-06-11 15:56:11 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2008-06-11 15:56:11 +0000 |
| commit | 7a9b77df373b64df154cda680152eb70a49d68b5 (patch) | |
| tree | 273802df24aad16284dee069bcc00084513d7bad /src/sp-polyline.cpp | |
| parent | We were using wrong gtk locale directory. Gtk's own translations were missing. (diff) | |
| download | inkscape-7a9b77df373b64df154cda680152eb70a49d68b5.tar.gz inkscape-7a9b77df373b64df154cda680152eb70a49d68b5.zip | |
plumb XML::Documents in everywhere
(bzr r5884)
Diffstat (limited to 'src/sp-polyline.cpp')
| -rw-r--r-- | src/sp-polyline.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sp-polyline.cpp b/src/sp-polyline.cpp index 4a39afd1b..08f446d61 100644 --- a/src/sp-polyline.cpp +++ b/src/sp-polyline.cpp @@ -25,7 +25,7 @@ static void sp_polyline_init (SPPolyLine *polyline); static void sp_polyline_build (SPObject * object, SPDocument * document, Inkscape::XML::Node * repr); static void sp_polyline_set (SPObject *object, unsigned int key, const gchar *value); -static Inkscape::XML::Node *sp_polyline_write (SPObject *object, Inkscape::XML::Node *repr, guint flags); +static Inkscape::XML::Node *sp_polyline_write (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags); static gchar * sp_polyline_description (SPItem * item); @@ -151,14 +151,13 @@ sp_polyline_set (SPObject *object, unsigned int key, const gchar *value) } static Inkscape::XML::Node * -sp_polyline_write (SPObject *object, Inkscape::XML::Node *repr, guint flags) +sp_polyline_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { SPPolyLine *polyline; polyline = SP_POLYLINE (object); if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { - Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object)); repr = xml_doc->createElement("svg:polyline"); } @@ -167,7 +166,7 @@ sp_polyline_write (SPObject *object, Inkscape::XML::Node *repr, guint flags) } if (((SPObjectClass *) (parent_class))->write) - ((SPObjectClass *) (parent_class))->write (object, repr, flags); + ((SPObjectClass *) (parent_class))->write (object, xml_doc, repr, flags); return repr; } |
