diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-09-26 00:23:06 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-09-26 00:23:06 +0000 |
| commit | 9688e3858010724f4cd16664025e5c54b4e9872f (patch) | |
| tree | 869f00b84f30ca35576ba05e7408bb80f0d6f225 /src/object/sp-item.cpp | |
| parent | cppcheck: out of bounds ziptool (diff) | |
| download | inkscape-9688e3858010724f4cd16664025e5c54b4e9872f.tar.gz inkscape-9688e3858010724f4cd16664025e5c54b4e9872f.zip | |
Fix #1787601 star stroke width broken (scaled by 3.78)
Diffstat (limited to 'src/object/sp-item.cpp')
| -rw-r--r-- | src/object/sp-item.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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()) { |
