From 24901d78071586fc3cb5b67c9d350ce3696fda89 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Tue, 3 Jan 2012 19:51:01 -0500 Subject: for bbox calculation, disable call to Path::Coalesce (Bug 906952) Fixed bugs: - https://launchpad.net/bugs/906952 (bzr r10835) --- src/splivarot.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/splivarot.cpp') 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; -- cgit v1.2.3