We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b680d commit ac884e4Copy full SHA for ac884e4
1 file changed
star/src/turtle/preprocess.rs
@@ -23,7 +23,12 @@ impl Turtle for PreprocessTurtle {
23
24
#[cfg(feature = "image")]
25
fn image(&mut self, image: super::elements::RasterImage) {
26
- self.bounding_box = self.bounding_box.union(&image.dimensions);
+ self.bounding_box = Box2D::from_points([
27
+ self.bounding_box.min,
28
+ self.bounding_box.max,
29
+ image.dimensions.min,
30
+ image.dimensions.max,
31
+ ]);
32
}
33
34
fn fill_polygon(&mut self, polygon: FillPolygon) {
0 commit comments