summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-11 21:35:40 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-11 21:35:40 +0000
commitf1a9da5054b58970118be15fafeec021fb225200 (patch)
tree021f563b4cd15cd646ef55843ed101ec2c316e8e /src/display
parentupdate to trunk (diff)
parentChange stroke-dasharray and stroke-dashoffset handling to match other propert... (diff)
downloadinkscape-f1a9da5054b58970118be15fafeec021fb225200.tar.gz
inkscape-f1a9da5054b58970118be15fafeec021fb225200.zip
update to trunk
(bzr r11950.1.290)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/nr-style.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display/nr-style.cpp b/src/display/nr-style.cpp
index 570ccd31e..125d0c6d6 100644
--- a/src/display/nr-style.cpp
+++ b/src/display/nr-style.cpp
@@ -152,12 +152,12 @@ void NRStyle::set(SPStyle *style)
delete [] dash;
}
- n_dash = style->stroke_dash.n_dash;
+ n_dash = style->stroke_dasharray.values.size();
if (n_dash != 0) {
- dash_offset = style->stroke_dash.offset;
+ dash_offset = style->stroke_dashoffset.value;
dash = new double[n_dash];
for (unsigned int i = 0; i < n_dash; ++i) {
- dash[i] = style->stroke_dash.dash[i];
+ dash[i] = style->stroke_dasharray.values[i];
}
} else {
dash_offset = 0.0;