diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-08-15 09:11:55 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-08-15 09:11:55 +0000 |
| commit | dac72fcd64d2fb7e216d5165a8821b722d2eded9 (patch) | |
| tree | 82949171f4c2b8cf32fef4d20657492ec908b3d3 /src/object/sp-item.cpp | |
| parent | fix a typo (diff) | |
| download | inkscape-dac72fcd64d2fb7e216d5165a8821b722d2eded9.tar.gz inkscape-dac72fcd64d2fb7e216d5165a8821b722d2eded9.zip | |
Relative values for strokes:
Fix segmenation fault on reading dashes with % values.
Fix computed value for dashes with % values (use viewport diagonal length).
Support % values for stroke width.
Diffstat (limited to 'src/object/sp-item.cpp')
| -rw-r--r-- | src/object/sp-item.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index 3b6329436..d7c461f92 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -1307,10 +1307,11 @@ void SPItem::adjust_stroke( gdouble ex ) if ( !style->stroke_dasharray.values.empty() ) { for (unsigned i = 0; i < style->stroke_dasharray.values.size(); i++) { - double dash = style->stroke_dasharray.values[i].value * ex; - style->stroke_dasharray.values[i].setDouble(dash); + style->stroke_dasharray.values[i].value *= ex; + style->stroke_dasharray.values[i].computed *= ex; } - style->stroke_dashoffset.value *= ex; + style->stroke_dashoffset.value *= ex; + style->stroke_dashoffset.computed *= ex; } updateRepr(); |
