summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74c1514)
raw | patch | inline | side by side (parent: 74c1514)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 3 Aug 2008 18:21:33 +0000 (18:21 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 3 Aug 2008 18:21:33 +0000 (18:21 +0000) |
src/splivarot.cpp | patch | blob | history |
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 6d592f662ff50d9b795ab5d57643c6878514f93f..b8c2bb2f0f891eca1c4d776a7fe4d0b9df30ab3e 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
#include <libnr/nr-matrix-translate-ops.h>
#include <libnr/nr-scale-matrix-ops.h>
#include <libnr/n-art-bpath-2geom.h>
+#include "helper/geom.h"
#include "livarot/Path.h"
#include "livarot/Shape.h"
o_miter = i_style->stroke_miterlimit.value * o_width;
}
- Path *orig = Path_for_item(item, false);
- if (orig == NULL) {
+ SPCurve *curvetemp = curve_for_item(item);
+ if (curvetemp == NULL) {
curve->unref();
continue;
}
+ // Livarots outline of arcs is broken. So convert the path to linear and cubics only, for which the outline is created correctly.
+ Geom::PathVector pathv = pathv_to_linear_and_cubic_beziers( curvetemp->get_pathvector() );
+ curvetemp->unref();
+
+ Path *orig = new Path;
+ orig->LoadPathVector(pathv);
Path *res = new Path;
res->SetBackData(false);