aboutsummaryrefslogtreecommitdiff
path: root/src/rasterizer/line.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rasterizer/line.rs')
-rw-r--r--src/rasterizer/line.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rasterizer/line.rs b/src/rasterizer/line.rs
index 0f24b0a..7a646f4 100644
--- a/src/rasterizer/line.rs
+++ b/src/rasterizer/line.rs
@@ -6,7 +6,7 @@ pub fn draw_line<DB: DrawingBackend, S: BackendStyle>(
mut to: BackendCoord,
style: &S,
) -> Result<(), DrawingErrorKind<DB::ErrorType>> {
- if style.color().alpha == 0.0 {
+ if style.color().alpha == 0.0 || style.stroke_width() == 0 {
return Ok(());
}