diff options
author | Joel Galenson <jgalenson@google.com> | 2021-08-09 10:37:52 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-08-09 10:37:52 -0700 |
commit | 2f46b5056178fc693264f7622002c9482ecda738 (patch) | |
tree | 67207287cf373ca4f6c5aacd8fc76810f422853b /src | |
parent | 06f4925bc4f7dd9ad0f0cedc428e043b4c3fdc51 (diff) | |
download | plotters-backend-2f46b5056178fc693264f7622002c9482ecda738.tar.gz |
Upgrade rust/crates/plotters-backend to 0.3.2
Test: make
Change-Id: I91a14dc3a6ebc67ea9f30f2b4f86619eae05b883
Diffstat (limited to 'src')
-rw-r--r-- | src/rasterizer/line.rs | 2 |
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(()); } |