diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-08 17:55:15 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-08 17:55:15 +0000 |
| commit | cfb555a0a5fe43e44b9f9725fe64d68b9a2f5eef (patch) | |
| tree | 63c3f6a7da12fbe8564789cf616422c80ee16c32 /src/eraser-context.cpp | |
| parent | patch by FreqMod for bug 246389 (diff) | |
| download | inkscape-cfb555a0a5fe43e44b9f9725fe64d68b9a2f5eef.tar.gz inkscape-cfb555a0a5fe43e44b9f9725fe64d68b9a2f5eef.zip | |
* 2geomify polygon svg writing
* 2geomify caligraphy and erasertool svg writing
(bzr r6228)
Diffstat (limited to 'src/eraser-context.cpp')
| -rw-r--r-- | src/eraser-context.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp index 605c6971d..6cfd915ef 100644 --- a/src/eraser-context.cpp +++ b/src/eraser-context.cpp @@ -48,10 +48,6 @@ #include "message-context.h" #include "prefs-utils.h" #include "pixmaps/cursor-eraser.xpm" -#include "libnr/n-art-bpath.h" -#include "libnr/nr-path.h" -#include "libnr/nr-matrix-ops.h" -#include "libnr/nr-scale-translate-ops.h" #include "xml/repr.h" #include "context-fns.h" #include "sp-item.h" @@ -66,7 +62,8 @@ #include "display/canvas-bpath.h" #include "display/canvas-arena.h" #include "livarot/Shape.h" -#include "2geom/isnan.h" +#include <2geom/isnan.h> +#include <2geom/pathvector.h> #include "eraser-context.h" @@ -718,9 +715,6 @@ set_to_accumulated(SPEraserContext *dc) bool workDone = false; if (!dc->accumulated->is_empty()) { - NArtBpath *abp; - gchar *str; - if (!dc->repr) { /* Create object */ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc()); @@ -736,10 +730,9 @@ set_to_accumulated(SPEraserContext *dc) item->transform = SP_ITEM(desktop->currentRoot())->getRelativeTransform(desktop->currentLayer()); item->updateRepr(); } - abp = nr_artpath_affine(dc->accumulated->get_bpath(), sp_desktop_dt2root_affine(desktop)); - str = sp_svg_write_path(abp); + Geom::PathVector pathv = dc->accumulated->get_pathvector() * to_2geom(sp_desktop_dt2root_affine(desktop)); + gchar *str = sp_svg_write_path(pathv); g_assert( str != NULL ); - g_free(abp); dc->repr->setAttribute("d", str); g_free(str); |
