From 9688e3858010724f4cd16664025e5c54b4e9872f Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Wed, 26 Sep 2018 02:23:06 +0200 Subject: Fix #1787601 star stroke width broken (scaled by 3.78) --- src/object/sp-item.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/object/sp-item.cpp') diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index 57cbfcd4e..14feacf8e 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -1513,10 +1513,12 @@ void SPItem::doWriteTransform(Geom::Affine const &transform, Geom::Affine const !(!transform.isTranslation() && style && style->getFilter())) // the object does not have a filter, or the transform is translation (which is supposed to not affect filters) ) { - transform_attr = this->set_transform(transform); - if (freeze_stroke_width) { freeze_stroke_width_recursive(false); + if (compensate) { + double const expansion = 1. / advertized_transform.descrim(); + adjust_stroke_width_recursive(expansion); + } } } else { if (lpeitem && lpeitem->hasPathEffectRecursive()) { -- cgit v1.2.3