summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36344b3)
raw | patch | inline | side by side (parent: 36344b3)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 22 Jun 2008 22:19:10 +0000 (22:19 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 22 Jun 2008 22:19:10 +0000 (22:19 +0000) |
src/path-chemistry.cpp | patch | blob | history |
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index aac75756e305ffc7098b146b00f97a15cd9be940..a796ae340e63dccaec540eb4b19eb7476db7d0a2 100644 (file)
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
#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 */
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();