diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-06-10 14:20:18 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-08-05 00:31:06 +0000 |
| commit | 7aaeaacc08de60fd324646afe69f4dbed93f89d4 (patch) | |
| tree | 13c87e946659151021e553dc3b752c3dbcd2f4a2 /src/object/sp-item.cpp | |
| parent | Fix one symbolic icon bug (diff) | |
| download | inkscape-7aaeaacc08de60fd324646afe69f4dbed93f89d4.tar.gz inkscape-7aaeaacc08de60fd324646afe69f4dbed93f89d4.zip | |
Allow inkscape handle units and percent in dasharray and dashoffset. Add pref optional to scale dashes on stroke scale
Diffstat (limited to 'src/object/sp-item.cpp')
| -rw-r--r-- | src/object/sp-item.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index ec92c655f..fd27a6e90 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -1307,9 +1307,10 @@ void SPItem::adjust_stroke( gdouble ex ) if ( !style->stroke_dasharray.values.empty() ) { for (unsigned i = 0; i < style->stroke_dasharray.values.size(); i++) { - style->stroke_dasharray.values[i] *= ex; + style->stroke_dasharray.values[i].scale(ex); } - style->stroke_dashoffset.value *= ex; + style->stroke_dashoffset.value = style->stroke_dashoffset.value * ex; + style->stroke_dashoffset.computed = style->stroke_dashoffset.computed * ex; } updateRepr(); |
