summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2012-01-04 00:51:01 +0000
committerapenner <penner@vaxxine.com>2012-01-04 00:51:01 +0000
commit24901d78071586fc3cb5b67c9d350ce3696fda89 (patch)
treea02d3ae583d7c27d6ee5d517caa34a4a6f033682 /src/splivarot.cpp
parentRename LaTeX formula extension to LaTeX (diff)
downloadinkscape-24901d78071586fc3cb5b67c9d350ce3696fda89.tar.gz
inkscape-24901d78071586fc3cb5b67c9d350ce3696fda89.zip
for bbox calculation, disable call to Path::Coalesce (Bug 906952)
Fixed bugs: - https://launchpad.net/bugs/906952 (bzr r10835)
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;