summaryrefslogtreecommitdiffstats
path: root/src/flood-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-07 20:32:37 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-07 20:32:37 +0000
commit09741fe3e1e516790af651d2e522762552dcfc7a (patch)
tree14b5f3328179d40b95a63b7554eddb923a828d52 /src/flood-context.cpp
parentreplace separate forward declarations by proper forward.h inclusion (diff)
downloadinkscape-09741fe3e1e516790af651d2e522762552dcfc7a.tar.gz
inkscape-09741fe3e1e516790af651d2e522762552dcfc7a.zip
2geomify conversion to livaror in flood-context.cpp
(bzr r6215)
Diffstat (limited to 'src/flood-context.cpp')
-rw-r--r--src/flood-context.cpp7
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) {