From bbf828d9ae370e9aede9702e520c106c380a3867 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 12 Jun 2018 23:33:11 +0200 Subject: Refactor with Tav help --- src/object/sp-item.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/object/sp-item.cpp') diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index ec92c655f..fa281e9ee 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -22,6 +22,7 @@ #include "bad-uri-exception.h" #include "svg/svg.h" +#include "svg/css-ostringstream.h" #include "print.h" #include "display/drawing-item.h" #include "attributes.h" @@ -1307,7 +1308,10 @@ void SPItem::adjust_stroke( gdouble ex ) if ( !style->stroke_dasharray.values.empty() ) { for (unsigned i = 0; i < style->stroke_dasharray.values.size(); i++) { - style->stroke_dasharray.values[i] *= ex; + double dash = style->stroke_dasharray.values[i].value * ex; + Inkscape::CSSOStringStream osarray; + osarray << dash; + style->stroke_dasharray.values[i].read(osarray.str().c_str()); } style->stroke_dashoffset.value *= ex; } -- cgit v1.2.3