summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2016-11-26 01:30:18 +0000
committerJabiertxof <jtx@jtx>2016-11-26 01:30:18 +0000
commit75966adbcbc90a011afd5e48ad1101a8f5a64e61 (patch)
tree56645104ee7705d5bb140bd0f4e600bc17970716 /src
parentProvide a way to update a legacy document to account for the 90 to 96 dpi cha... (diff)
downloadinkscape-75966adbcbc90a011afd5e48ad1101a8f5a64e61.tar.gz
inkscape-75966adbcbc90a011afd5e48ad1101a8f5a64e61.zip
Add stroke dash empty to allow render only fills and markers. Tested in FF and Chromium
(bzr r15274)
Diffstat (limited to 'src')
-rw-r--r--src/preferences-skeleton.h1
-rw-r--r--src/widgets/dash-selector.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h
index 38196a58e..ff43c2ca3 100644
--- a/src/preferences-skeleton.h
+++ b/src/preferences-skeleton.h
@@ -140,6 +140,7 @@ static char const preferences_skeleton[] =
" <dash id=\"dash-1-12\" style=\"stroke-dasharray:1,12\"/>\n"
" <dash id=\"dash-1-24\" style=\"stroke-dasharray:1,24\"/>\n"
" <dash id=\"dash-1-48\" style=\"stroke-dasharray:1,48\"/>\n"
+" <dash id=\"dash-empty\" style=\"stroke-dasharray:0 11\"/>\n"
" <dash id=\"dash-2-1\" style=\"stroke-dasharray:2,1\"/>\n"
" <dash id=\"dash-3-1\" style=\"stroke-dasharray:3,1\"/>\n"
" <dash id=\"dash-4-1\" style=\"stroke-dasharray:4,1\"/>\n"
diff --git a/src/widgets/dash-selector.cpp b/src/widgets/dash-selector.cpp
index 522705cec..05f3ab44c 100644
--- a/src/widgets/dash-selector.cpp
+++ b/src/widgets/dash-selector.cpp
@@ -174,11 +174,13 @@ void SPDashSelector::set_dash (int ndash, double *dash, double o)
else if(ndash==0) {
pos = 0;
}
-
if(pos>=0){
this->set_data("pattern", dashes[pos]);
this->dash_combo.set_active(pos);
this->offset->set_value(o);
+ if(pos == 10) {
+ this->offset->set_value(10.0);
+ }
}
else { // Hit a custom pattern in the SVG, write it into the combobox.
count--; // the one slot for custom patterns