mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix 'Offset Path' node crash on empty or zero-scaled geometry
This commit is contained in:
@@ -45,6 +45,10 @@ pub fn offset_bezpath(bezpath: &BezPath, distance: f64, join: Join, miter_limit:
|
||||
})
|
||||
.collect::<Vec<BezPath>>();
|
||||
|
||||
if bezpaths.is_empty() {
|
||||
return BezPath::new();
|
||||
}
|
||||
|
||||
// Clip or join consecutive Subpaths
|
||||
for i in 0..bezpaths.len() - 1 {
|
||||
let j = i + 1;
|
||||
|
||||
Reference in New Issue
Block a user