summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-22 22:19:10 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-22 22:19:10 +0000
commited93ad1af4b33ef04902b730ef0d81734e4dc158 (patch)
tree26049aa886c9eda2728ddfe895446d37a789a62f /src/path-chemistry.cpp
parentLPE Spiro: don't catch all exceptions, only the ContinuityError (diff)
downloadinkscape-ed93ad1af4b33ef04902b730ef0d81734e4dc158.tar.gz
inkscape-ed93ad1af4b33ef04902b730ef0d81734e4dc158.zip
split paths using 2geom PathVector
(bzr r6020)
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index aac75756e..a796ae340 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -37,7 +37,7 @@
#include "selection.h"
#include "desktop-handles.h"
#include "box3d.h"
-
+#include <2geom/pathvector.h>
#include "path-chemistry.h"
/* Helper functions for sp_selected_path_to_curves */
@@ -221,14 +221,14 @@ sp_selected_path_break_apart(void)
gchar *style = g_strdup(SP_OBJECT(item)->repr->attribute("style"));
gchar *path_effect = g_strdup(SP_OBJECT(item)->repr->attribute("inkscape:path-effect"));
- NArtBpath *abp = nr_artpath_affine(SP_CURVE_BPATH(curve), (SP_ITEM(path))->transform);
+ Geom::PathVector apv = curve->get_pathvector() * to_2geom(SP_ITEM(path)->transform);
curve->unref();
// it's going to resurrect as one of the pieces, so we delete without advertisement
SP_OBJECT(item)->deleteObject(false);
- curve = SPCurve::new_from_bpath(abp);
+ curve = new SPCurve(apv);
g_assert(curve != NULL);
GSList *list = curve->split();