diff options
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | .github/dependabot.yml | 7 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/rasterizer/line.rs | 2 |
6 files changed, 15 insertions, 8 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 4b0f3cd..46b53e4 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,5 @@ { "git": { - "sha1": "c6b06516c13c2ab01854908bab6e59c004725353" + "sha1": "def8d8b4033af35963bc9b11cdb444cf99f91b5a" } } diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5cde165 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: cargo + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 @@ -13,7 +13,7 @@ [package] edition = "2018" name = "plotters-backend" -version = "0.3.0" +version = "0.3.2" authors = ["Hao Hou <haohou302@gmail.com>"] description = "Plotters Backend API" homepage = "https://plotters-rs.github.io" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index b2f0750..0d27003 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "plotters-backend" -version = "0.3.0" +version = "0.3.2" authors = ["Hao Hou <haohou302@gmail.com>"] edition = "2018" license = "MIT" @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/plotters-backend/plotters-backend-0.3.0.crate" + value: "https://static.crates.io/crates/plotters-backend/plotters-backend-0.3.2.crate" } - version: "0.3.0" + version: "0.3.2" license_type: NOTICE last_upgrade_date { year: 2021 - month: 4 - day: 1 + month: 8 + day: 9 } } 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(()); } |