Skip to content

Commit

Permalink
Merge pull request openscad#5036 from jumostedu/fix-svg-linecap
Browse files Browse the repository at this point in the history
Fix svg import (stroke-linecap and stroke-linejoin)
  • Loading branch information
t-paul authored Mar 10, 2024
2 parents aef4364 + 3b9e85a commit f96ef9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/libsvg/shape.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ shape::get_stroke_linecap() const
} else if (cap == "square") {
return ClipperLib::etOpenSquare;
}
return ClipperLib::etOpenSquare;
return ClipperLib::etOpenButt;
}

ClipperLib::JoinType
Expand All @@ -184,7 +184,7 @@ shape::get_stroke_linejoin() const
return ClipperLib::jtSquare;
} else if (join == "round") {
return ClipperLib::jtRound;
} else if (join == "square") {
} else if (join == "miter") {
return ClipperLib::jtMiter;
}
return ClipperLib::jtMiter;
Expand Down
Binary file modified tests/regression/cgalpngtest/spec-shapes-line01-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f96ef9b

Please sign in to comment.