diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-22 22:28:03 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-22 22:28:03 +0000 |
| commit | 9c240dfd00dd067d2ddde8c6d46c212bd55d8c55 (patch) | |
| tree | c6d649e20fc87619aacd34113bccc40b8521fd5f /src/sp-path.cpp | |
| parent | read PathVector instead of NArtBpath (diff) | |
| download | inkscape-9c240dfd00dd067d2ddde8c6d46c212bd55d8c55.tar.gz inkscape-9c240dfd00dd067d2ddde8c6d46c212bd55d8c55.zip | |
read PathVector instead of NArtBpath
(bzr r6022)
Diffstat (limited to 'src/sp-path.cpp')
| -rw-r--r-- | src/sp-path.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 16c8b85f4..962be5cb5 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -24,6 +24,7 @@ #include <libnr/n-art-bpath.h> #include <libnr/nr-path.h> #include <libnr/nr-matrix-fns.h> +#include <2geom/pathvector.h> #include "svg/svg.h" #include "xml/repr.h" @@ -247,8 +248,8 @@ sp_path_set(SPObject *object, unsigned int key, gchar const *value) switch (key) { case SP_ATTR_INKSCAPE_ORIGINAL_D: if (value) { - NArtBpath *bpath = sp_svg_read_path(value); - SPCurve *curve = SPCurve::new_from_bpath(bpath); + Geom::PathVector pv = sp_svg_read_pathv(value); + SPCurve *curve = new SPCurve(pv); if (curve) { sp_path_set_original_curve(path, curve, TRUE, true); curve->unref(); @@ -261,8 +262,8 @@ sp_path_set(SPObject *object, unsigned int key, gchar const *value) case SP_ATTR_D: if (!sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(path))) { if (value) { - NArtBpath *bpath = sp_svg_read_path(value); - SPCurve *curve = SPCurve::new_from_bpath(bpath); + Geom::PathVector pv = sp_svg_read_pathv(value); + SPCurve *curve = new SPCurve(pv); if (curve) { sp_shape_set_curve((SPShape *) path, curve, TRUE); curve->unref(); |
