diff options
Diffstat (limited to 'src/object/sp-item.cpp')
| -rw-r--r-- | src/object/sp-item.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |
