mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Fix SVG viewBox capitalization in renderer (#2131)
fix `viewBox` capitalization
This commit is contained in:
parent
fc0cf604df
commit
287ef26f64
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ impl SvgRender {
|
|||
pub fn wrap_with_transform(&mut self, transform: DAffine2, size: Option<DVec2>) {
|
||||
let defs = &self.svg_defs;
|
||||
let view_box = size
|
||||
.map(|size| format!("viewbox=\"0 0 {} {}\" width=\"{}\" height=\"{}\"", size.x, size.y, size.x, size.y))
|
||||
.map(|size| format!("viewBox=\"0 0 {} {}\" width=\"{}\" height=\"{}\"", size.x, size.y, size.x, size.y))
|
||||
.unwrap_or_default();
|
||||
|
||||
let matrix = format_transform_matrix(transform);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue