diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-16 21:27:55 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-16 21:27:55 +0000 |
| commit | b9e23da6b96ee055d6c13e89f954032cf356cc31 (patch) | |
| tree | 307af4be314cafcbde830ade90e5e50662eed6ea /src/splivarot.cpp | |
| parent | warning cleanup (diff) | |
| download | inkscape-b9e23da6b96ee055d6c13e89f954032cf356cc31.tar.gz inkscape-b9e23da6b96ee055d6c13e89f954032cf356cc31.zip | |
remove all old nartbpath code from SPCurve!!! (in other words, lib2geomification of SPCurve complete)
(bzr r6330)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 4533ad9c6..42fb45109 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -53,6 +53,7 @@ #include <libnr/nr-matrix-ops.h> #include <libnr/nr-matrix-translate-ops.h> #include <libnr/nr-scale-matrix-ops.h> +#include <libnr/n-art-bpath-2geom.h> #include "livarot/Path.h" #include "livarot/Shape.h" @@ -1777,7 +1778,7 @@ bpath_for_curve(SPItem *item, SPCurve *curve, bool doTransformation, bool transf if (curve == NULL) return NULL; - NArtBpath const *bpath = SP_CURVE_BPATH(curve); + NArtBpath *bpath = BPath_from_2GeomPath(curve->get_pathvector()); if (bpath == NULL) { return NULL; } @@ -1793,6 +1794,7 @@ bpath_for_curve(SPItem *item, SPCurve *curve, bool doTransformation, bool transf new_bpath = nr_artpath_affine(bpath, NR::identity()); } + g_free(bpath); return new_bpath; } |
