From fef6d13a74f00cd79d2cb526687f35a0443fb5b1 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 18 Jun 2018 22:36:14 +0200 Subject: coding style fixes --- src/widgets/stroke-style.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/widgets/stroke-style.cpp') 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); -- cgit v1.2.3