summaryrefslogtreecommitdiffstats
path: root/src/widgets/dash-selector.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-06-25 19:58:20 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-08-05 00:38:53 +0000
commitd119fffbaf3a19c463edb28b232015cb40880445 (patch)
treec2dd998e9dfd73d9b2d9c2ab167a3d8f881f265a /src/widgets/dash-selector.cpp
parentUpdate to trunk and styling fixes (diff)
downloadinkscape-d119fffbaf3a19c463edb28b232015cb40880445.tar.gz
inkscape-d119fffbaf3a19c463edb28b232015cb40880445.zip
Fixes pointed by Tav
Diffstat (limited to 'src/widgets/dash-selector.cpp')
-rw-r--r--src/widgets/dash-selector.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/widgets/dash-selector.cpp b/src/widgets/dash-selector.cpp
index 9956b9062..3f1c91dc3 100644
--- a/src/widgets/dash-selector.cpp
+++ b/src/widgets/dash-selector.cpp
@@ -152,8 +152,6 @@ void SPDashSelector::set_dash (int ndash, double *dash, double o)
int pos = -1; // Allows custom patterns to remain unscathed by this.
int count = 0; // will hold the NULL terminator at the end of the dashes list
if (ndash > 0) {
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- gboolean scale = prefs->getBool("/options/dash/scale", true);
double delta = 0.0;
for (int i = 0; i < ndash; i++)
delta += dash[i];
@@ -167,13 +165,8 @@ void SPDashSelector::set_dash (int ndash, double *dash, double o)
if (np == ndash) {
int j;
for (j = 0; j < ndash; j++) {
- if (scale) {
- if (!Geom::are_near(dash[j], pattern[j], delta))
- break;
- }
- else {
- if (!Geom::are_near(dash[j], pattern[j], delta))
- break;
+ if (!Geom::are_near(dash[j], pattern[j], delta)) {
+ break;
}
}
if (j == ndash) {