Skip to content

Commit

Permalink
fix: Remove duplicate rectangle
Browse files Browse the repository at this point in the history
Fixes: #61
Signed-off-by: Awiteb <a@4rs.nl>
  • Loading branch information
TheAwiteb authored and erwanvivien committed Aug 8, 2024
1 parent 5a1eecb commit 0efce7c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/convert/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,6 @@ impl SvgBuilder {
placed_coord = (x - border_size / 2f64, y - border_size / 2f64);
}

out.push_str(&format!(
r#"<rect x="{0:.2}" y="{1:.2}" width="{2:.2}" height="{2:.2}" fill="{3}"/>"#,
placed_coord.0,
placed_coord.1,
border_size,
self.background_color.to_str()
));

let format = match self.image_background_shape {
ImageBackgroundShape::Square => {
r#"<rect x="{0}" y="{1}" width="{2}" height="{2}" fill="{3}"/>"#
Expand Down

0 comments on commit 0efce7c

Please sign in to comment.