From: johanengelen Date: Mon, 7 Jul 2008 20:32:37 +0000 (+0000) Subject: 2geomify conversion to livaror in flood-context.cpp X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f5f3c7e7e4a96dba4deed585a4a452fb10adffc;p=inkscape.git 2geomify conversion to livaror in flood-context.cpp --- diff --git a/src/flood-context.cpp b/src/flood-context.cpp index fa1f5ae23..3c7282629 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -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) {