Skip to content

Commit

Permalink
[bugfix] Component xScale/yScale default is 1, not 0
Browse files Browse the repository at this point in the history
Components weren't showing up w/o all matrix values set, which is
outside the spec.
  • Loading branch information
ctrlcctrlv committed Jan 7, 2022
1 parent f7bd0ec commit 7c5fe52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::point::{Handle, PointData, WhichHandle};
use crate::outline::Outline;

use integer_or_float::IntegerOrFloat;
use IntegerOrFloat::Float;
use kurbo::Affine;
use trees::{Forest, Tree, Node};

Expand Down Expand Up @@ -48,7 +49,11 @@ impl GlifComponents {

impl GlifComponent {
pub fn new() -> Self {
Self::default()
Self {
xScale: Float(1.0),
yScale: Float(1.0),
..Default::default()
}
}
}

Expand Down

0 comments on commit 7c5fe52

Please sign in to comment.