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/livarot | |
| parent | Revert changes (diff) | |
| download | inkscape-bbf828d9ae370e9aede9702e520c106c380a3867.tar.gz inkscape-bbf828d9ae370e9aede9702e520c106c380a3867.zip | |
Refactor with Tav help
Diffstat (limited to 'src/livarot')
| -rw-r--r-- | src/livarot/PathCutting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index 3c518c521..d99091ade 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -63,7 +63,7 @@ void Path::DashPolylineFromStyle(SPStyle *style, float scale, float min_len) double dlen = 0.0; // Find total length for (unsigned i = 0; i < style->stroke_dasharray.values.size(); i++) { - dlen += style->stroke_dasharray.values[i] * scale; + dlen += style->stroke_dasharray.values[i].value * scale; } if (dlen >= min_len) { // Extract out dash pattern (relative positions) @@ -71,7 +71,7 @@ void Path::DashPolylineFromStyle(SPStyle *style, float scale, float min_len) size_t n_dash = style->stroke_dasharray.values.size(); double *dash = g_new(double, n_dash); for (unsigned i = 0; i < n_dash; i++) { - dash[i] = style->stroke_dasharray.values[i] * scale; + dash[i] = style->stroke_dasharray.values[i].value * scale; } // Convert relative positions to absolute postions |
