diff --git a/src/sp-path.cpp b/src/sp-path.cpp
index ee98cc15095c146dbe6a11026ce3c18b3694312e..3b455e50532a74cff05f14107cf666db144df300 100644 (file)
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
# include <config.h>
#endif
-#if defined(WIN32) || defined(__APPLE__)
-# include <glibmm/i18n.h>
-#endif
+#include <glibmm/i18n.h>
#include <display/curve.h>
#include <libnr/n-art-bpath.h>
#include "sp-path.h"
+#include "document.h"
+
#define noPATH_VERBOSE
static void sp_path_class_init(SPPathClass *klass);
SPShape *shape = (SPShape *) object;
if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
- repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
+ repr = xml_doc->createElement("svg:path");
}
if ( shape->curve != NULL ) {