Fix crash upon setting stroke color to none

This commit is contained in:
Keavon Chambers
2023-04-06 18:11:45 -07:00
parent c16ee88b5d
commit ea02a2d53a
4 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ pub struct SetStrokeNode<Color, Weight, DashLengths, DashOffset, LineCap, LineJo
#[node_macro::node_fn(SetStrokeNode)]
fn set_vector_data_stroke(
mut vector_data: VectorData,
color: crate::Color,
color: Option<Color>,
weight: f64,
dash_lengths: Vec<f32>,
dash_offset: f64,
@@ -61,7 +61,7 @@ fn set_vector_data_stroke(
miter_limit: f64,
) -> VectorData {
vector_data.style.set_stroke(Stroke {
color: Some(color),
color,
weight,
dash_lengths,
dash_offset,