summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-03-11 14:52:08 +0000
committertavmjong-free <tavmjong@free.fr>2014-03-11 14:52:08 +0000
commit1d31728fb7399f48d272560a290dc990b75a197e (patch)
treea343611a11ff84857602a12ef0bf872cfa28cf56 /src/sp-item.cpp
parentAdd a few more style tests. (diff)
downloadinkscape-1d31728fb7399f48d272560a290dc990b75a197e.tar.gz
inkscape-1d31728fb7399f48d272560a290dc990b75a197e.zip
Change stroke-dasharray and stroke-dashoffset handling to match other properties.
Split style.h into more manageable size files. (bzr r13135)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp8
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();