summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-12 15:13:08 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-12 15:13:08 +0000
commit309112136c71cbb4f62fb850c6f6f12e32a67a8e (patch)
tree58e867ed84ddbc721113b948d4b6365cef02338a /src/selection-chemistry.cpp
parentReverted swatches (diff)
parentChange stroke-dasharray and stroke-dashoffset handling to match other propert... (diff)
downloadinkscape-309112136c71cbb4f62fb850c6f6f12e32a67a8e.tar.gz
inkscape-309112136c71cbb4f62fb850c6f6f12e32a67a8e.zip
Updated to trunk
(bzr r13090.1.24)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index b3d9af910..fad2dff5b 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -2067,17 +2067,9 @@ GSList *sp_get_same_stroke_style(SPItem *sel, GSList *src, SPSelectStrokeStyleTy
}
}
else if (type == SP_STROKE_STYLE_DASHES ) {
- match = (sel_style->stroke_dasharray_set == iter_style->stroke_dasharray_set);
- if (sel_style->stroke_dasharray_set && iter_style->stroke_dasharray_set) {
- match = (sel_style->stroke_dash.n_dash == iter_style->stroke_dash.n_dash);
- if (sel_style->stroke_dash.n_dash == iter_style->stroke_dash.n_dash) {
- for (int i = 0; i < sel_style->stroke_dash.n_dash; i++) {
- if (sel_style->stroke_dash.dash[i] != iter_style->stroke_dash.dash[i]) {
- match = false;
- break;
- }
- }
- }
+ match = (sel_style->stroke_dasharray.set == iter_style->stroke_dasharray.set);
+ if (sel_style->stroke_dasharray.set && iter_style->stroke_dasharray.set) {
+ match = (sel_style->stroke_dasharray.values == iter_style->stroke_dasharray.values);
}
}
else if (type == SP_STROKE_STYLE_MARKERS) {