summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-08-15 09:11:55 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-08-15 09:11:55 +0000
commitdac72fcd64d2fb7e216d5165a8821b722d2eded9 (patch)
tree82949171f4c2b8cf32fef4d20657492ec908b3d3 /src/display
parentfix a typo (diff)
downloadinkscape-dac72fcd64d2fb7e216d5165a8821b722d2eded9.tar.gz
inkscape-dac72fcd64d2fb7e216d5165a8821b722d2eded9.zip
Relative values for strokes:
Fix segmenation fault on reading dashes with % values. Fix computed value for dashes with % values (use viewport diagonal length). Support % values for stroke width.
Diffstat (limited to 'src/display')
-rw-r--r--src/display/nr-style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/nr-style.cpp b/src/display/nr-style.cpp
index d509ced9c..58ef29a45 100644
--- a/src/display/nr-style.cpp
+++ b/src/display/nr-style.cpp
@@ -221,7 +221,7 @@ void NRStyle::set(SPStyle *style, SPStyle *context_style)
dash_offset = style->stroke_dashoffset.computed;
dash = new double[n_dash];
for (unsigned int i = 0; i < n_dash; ++i) {
- dash[i] = style->stroke_dasharray.values[i].value;
+ dash[i] = style->stroke_dasharray.values[i].computed;
}
} else {
dash_offset = 0.0;