diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-03-12 15:13:08 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-03-12 15:13:08 +0000 |
| commit | 309112136c71cbb4f62fb850c6f6f12e32a67a8e (patch) | |
| tree | 58e867ed84ddbc721113b948d4b6365cef02338a /src/sp-item.cpp | |
| parent | Reverted swatches (diff) | |
| parent | Change stroke-dasharray and stroke-dashoffset handling to match other propert... (diff) | |
| download | inkscape-309112136c71cbb4f62fb850c6f6f12e32a67a8e.tar.gz inkscape-309112136c71cbb4f62fb850c6f6f12e32a67a8e.zip | |
Updated to trunk
(bzr r13090.1.24)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index ff3e3a31c..cd8e2119b 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1208,11 +1208,11 @@ void SPItem::adjust_stroke( gdouble ex ) style->stroke_width.computed *= ex; style->stroke_width.set = TRUE; - if ( style->stroke_dash.n_dash != 0 ) { - for (int i = 0; i < style->stroke_dash.n_dash; i++) { - style->stroke_dash.dash[i] *= 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_dash.offset *= ex; + style->stroke_dashoffset.value *= ex; } updateRepr(); |
