diff options
Diffstat (limited to 'src/flood-context.cpp')
| -rw-r--r-- | src/flood-context.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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) { |
