Skip to content

Commit a9edbd2

Browse files
committed
Ticket [c51a56d7]: svg: Correctly paint stroke leftover path. Upstream: memononen/nanosvg#276
1 parent 444bd78 commit a9edbd2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ to the userbase.
1717

1818
# Bug fixes
1919
- [Improve the look of the ttk::spinbox widgets in the built-in themes](https://core.tcl-lang.org/tk/tktview/4d2baa)
20+
- [SVG rendering: Correctly paint stroke leftover path](https://core.tcl-lang.org/tk/tktview/c51a56)
2021

2122
Release Tk 9.0.3 arises from the check-in with tag `core-9-0-3`.
2223

generic/nanosvgrast.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,10 @@ static void nsvg__flattenShapeStroke(NSVGrasterizer* r, NSVGshape* shape, float
849849
}
850850
}
851851
/* Stroke any leftover path */
852-
if (r->npoints > 1 && dashState)
852+
if (r->npoints > 1 && dashState) {
853+
nsvg__prepareStroke(r, miterLimit, lineJoin);
853854
nsvg__expandStroke(r, r->points, r->npoints, 0, lineJoin, lineCap, lineWidth);
855+
}
854856
} else {
855857
nsvg__prepareStroke(r, miterLimit, lineJoin);
856858
nsvg__expandStroke(r, r->points, r->npoints, closed, lineJoin, lineCap, lineWidth);

0 commit comments

Comments
 (0)