summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-06-18 20:36:14 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-08-05 00:37:57 +0000
commitfef6d13a74f00cd79d2cb526687f35a0443fb5b1 (patch)
tree955d9568e7347e83c8fb09a01485792a538f499f /src/widgets
parentFixes compiling bugs (diff)
downloadinkscape-fef6d13a74f00cd79d2cb526687f35a0443fb5b1.tar.gz
inkscape-fef6d13a74f00cd79d2cb526687f35a0443fb5b1.zip
coding style fixes
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dash-selector.cpp3
-rw-r--r--src/widgets/stroke-style.cpp9
2 files changed, 7 insertions, 5 deletions
diff --git a/src/widgets/dash-selector.cpp b/src/widgets/dash-selector.cpp
index 7c3f32765..9956b9062 100644
--- a/src/widgets/dash-selector.cpp
+++ b/src/widgets/dash-selector.cpp
@@ -170,7 +170,8 @@ void SPDashSelector::set_dash (int ndash, double *dash, double o)
if (scale) {
if (!Geom::are_near(dash[j], pattern[j], delta))
break;
- } else {
+ }
+ else {
if (!Geom::are_near(dash[j], pattern[j], delta))
break;
}
diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp
index ae49f9e40..bfa21a9ea 100644
--- a/src/widgets/stroke-style.cpp
+++ b/src/widgets/stroke-style.cpp
@@ -754,9 +754,9 @@ StrokeStyle::setDashSelectorFromStyle(SPDashSelector *dsel, SPStyle *style)
else
d[i] = style->stroke_dasharray.values[i].value; // is there a better thing to do for stroke_width==0?
}
- dsel->set_dash(len, d, style->stroke_width.computed != 0 ?
- style->stroke_dashoffset.value / scaledash :
- style->stroke_dashoffset.value);
+ dsel->set_dash(len, d,
+ style->stroke_width.computed != 0 ? style->stroke_dashoffset.value / scaledash
+ : style->stroke_dashoffset.value);
} else {
dsel->set_dash(0, nullptr, 0.0);
}
@@ -1053,7 +1053,8 @@ StrokeStyle::scaleLine()
gboolean scale = prefs->getBool("/options/dash/scale", true);
if (scale) {
setScaledDash(css, ndash, dash, offset, width);
- } else {
+ }
+ else {
setScaledDash(css, ndash, dash, offset, document->getDocumentScale()[0]);
}
sp_desktop_apply_css_recursive ((*i), css, true);