Commit f1d271d3 authored by RazrFalcon's avatar RazrFalcon

Fixed 'rotate' attribute resolving.

parent ac431470
......@@ -14,6 +14,7 @@ This changelog also contains important changes in dependencies.
### Fixed
- (usvg) `offset` attribute resolving inside the `stop` element.
- (usvg) Ungrouping of groups with non-inheritable attributes.
- (usvg) `rotate` attribute resolving.
- (svgdom) `stroke-miterlimit` attribute parsing.
- (svgdom) `length` and `number` attribute types parsing.
- (svgdom) `offset` attribute parsing.
......
......@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- `offset` attribute resolving inside the `stop` element.
- Ungrouping of groups with non-inheritable attributes.
- `rotate` attribute resolving.
### Removed
- `Rect::transform`.
......
......@@ -75,6 +75,10 @@ fn resolve_rotate(parent: &Node, mut offset: usize, list: &mut Vec<f64>) {
offset += chars_count;
}
} else {
for _ in 0..chars_count {
list.push(0.0);
}
}
} else if child.is_tag_name(EId::Tspan) {
// Use parent rotate list if it is not set.
......
......@@ -833,3 +833,4 @@ a-opacity-006,b533959f
e-rect-025,2f5b8c7a
e-svg-033,2f5b8c7a
e-filter-056,1e413d67
e-tspan-017,6711b031
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment