Skip to content

Commit

Permalink
Fix bounding box calculation for the root group used for viewBox fl…
Browse files Browse the repository at this point in the history
…attening.
  • Loading branch information
RazrFalcon committed Sep 25, 2024
1 parent 39ca0a8 commit 3afb872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This changelog also contains important changes in dependencies.

### Fixed
- (svgtypes) Path parsing with `S` or `T` segments after `A`.
- Bounding box calculation for the root group used for `viewBox` flattening.

## [0.43.0] - 2024-08-10
### Added
Expand Down
1 change: 1 addition & 0 deletions crates/usvg/src/parser/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ pub(crate) fn convert_doc(svg_doc: &svgtree::Document, opt: &Options) -> Result<
g.transform = root_ts;
g.abs_transform = root_ts;
convert_children(svg_doc.root(), &state, &mut cache, &mut g);
g.calculate_bounding_boxes();
tree.root.children.push(Node::Group(Box::new(g)));
}

Expand Down

0 comments on commit 3afb872

Please sign in to comment.