File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
node-graph/gsvg-renderer/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -904,7 +904,7 @@ impl Render for Table<Vector> {
904904 let opacity = row. alpha_blending . opacity ( render_params. for_mask ) ;
905905 if opacity < 1. || row. alpha_blending . blend_mode != BlendMode :: default ( ) {
906906 layer = true ;
907- let weight = row. element . style . stroke ( ) . unwrap ( ) . effective_width ( ) ;
907+ let weight = row. element . style . stroke ( ) . as_ref ( ) . map_or ( 0. , Stroke :: effective_width ) ;
908908 let quad = Quad :: from_box ( layer_bounds) . inflate ( weight * max_scale ( applied_stroke_transform) ) ;
909909 let layer_bounds = quad. bounding_box ( ) ;
910910 scene. push_layer (
@@ -1049,7 +1049,7 @@ impl Render for Table<Vector> {
10491049 } ) ;
10501050
10511051 let bounds = row. element . bounding_box_with_transform ( multiplied_transform) . unwrap_or ( layer_bounds) ;
1052- let weight = row. element . style . stroke ( ) . unwrap ( ) . effective_width ( ) ;
1052+ let weight = row. element . style . stroke ( ) . as_ref ( ) . map_or ( 0. , Stroke :: effective_width ) ;
10531053 let quad = Quad :: from_box ( bounds) . inflate ( weight * max_scale ( applied_stroke_transform) ) ;
10541054 let bounds = quad. bounding_box ( ) ;
10551055 let rect = kurbo:: Rect :: new ( bounds[ 0 ] . x , bounds[ 0 ] . y , bounds[ 1 ] . x , bounds[ 1 ] . y ) ;
You can’t perform that action at this time.
0 commit comments