summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 63eb5c8ff..22b0f2241 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -676,7 +676,7 @@ void item_outline_add_marker( SPObject const *marker_object, Geom::Affine marker
* Returns a pathvector that is the outline of the stroked item, with markers.
* item must be SPShape or SPText.
*/
-Geom::PathVector* item_outline(SPItem const *item)
+Geom::PathVector* item_outline(SPItem const *item, bool coalesce)
{
Geom::PathVector *ret_pathv = NULL;
@@ -774,14 +774,18 @@ Geom::PathVector* item_outline(SPItem const *item)
originaux[0] = res;
theRes->ConvertToForme(orig, 1, originaux);
- res->Coalesce(5.0);
+ if (coalesce) {
+ res->Coalesce(5.0);
+ }
delete theShape;
delete theRes;
} else {
orig->Outline(res, 0.5 * o_width, o_join, o_butt, 0.5 * o_miter);
- orig->Coalesce(0.5 * o_width);
+ if (coalesce) {
+ orig->Coalesce(0.5 * o_width);
+ }
Shape *theShape = new Shape;
Shape *theRes = new Shape;