diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-06-12 21:33:11 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-08-05 00:31:06 +0000 |
| commit | bbf828d9ae370e9aede9702e520c106c380a3867 (patch) | |
| tree | 1995e3e38ee25046906073df927999988e445941 /src/object | |
| parent | Revert changes (diff) | |
| download | inkscape-bbf828d9ae370e9aede9702e520c106c380a3867.tar.gz inkscape-bbf828d9ae370e9aede9702e520c106c380a3867.zip | |
Refactor with Tav help
Diffstat (limited to 'src/object')
| -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; } |
