Code

2geomify conversion to livaror in flood-context.cpp
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Jul 2008 20:32:37 +0000 (20:32 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Jul 2008 20:32:37 +0000 (20:32 +0000)
src/flood-context.cpp

index fa1f5ae23fe415d74046c386bf9f91adf9298a74..3c72826292eaa754f771f89814ac3b2a2998542f 100644 (file)
@@ -55,6 +55,7 @@
 #include "libnr/nr-translate-matrix-ops.h"
 #include "libnr/nr-translate-scale-ops.h"
 #include "libnr/nr-matrix-ops.h"
+#include <2geom/pathvector.h>
 #include "sp-item.h"
 #include "sp-root.h"
 #include "sp-defs.h"
@@ -455,9 +456,9 @@ static void do_trace(bitmap_coords_info bci, guchar *trace_px, SPDesktop *deskto
         /* Set style */
         sp_desktop_apply_style_tool (desktop, pathRepr, "tools.paintbucket", false);
 
-        NArtBpath *bpath = sp_svg_read_path(result.getPathData().c_str());
-        Path *path = bpath_to_Path(bpath);
-        g_free(bpath);
+        Geom::PathVector pathv = sp_svg_read_pathv(result.getPathData().c_str());
+        Path *path = new Path;
+        path->LoadPathVector(pathv);
 
         if (offset != 0) {