diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-03-11 21:35:40 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-03-11 21:35:40 +0000 |
| commit | f1a9da5054b58970118be15fafeec021fb225200 (patch) | |
| tree | 021f563b4cd15cd646ef55843ed101ec2c316e8e /src/sp-item.cpp | |
| parent | update to trunk (diff) | |
| parent | Change stroke-dasharray and stroke-dashoffset handling to match other propert... (diff) | |
| download | inkscape-f1a9da5054b58970118be15fafeec021fb225200.tar.gz inkscape-f1a9da5054b58970118be15fafeec021fb225200.zip | |
update to trunk
(bzr r11950.1.290)
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 5e126f486..9c8b28559 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1168,11 +1168,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(); |
