mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 17:28:11 +08:00
Path Bool library code cleanup (#2000)
* Remove log statements * Add feature gates to functions in path.rs * Fix infinite parsing loop and add new test * License tweaks * Remove trailing zero in whole number floats * Flatten visual-tests directory * Code review * Clean up printlines * Add error handling to path parsing --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
3ddc052538
commit
8a1089938e
@@ -42,8 +42,8 @@ pub(crate) fn line_segment_aabb_intersect(seg: LineSegment, bounding_box: &Aabb)
|
||||
} else {
|
||||
// failed both tests, so calculate the line segment to clip
|
||||
// from an outside point to an intersection with clip edge
|
||||
let mut x = 0.0;
|
||||
let mut y = 0.0;
|
||||
let mut x = 0.;
|
||||
let mut y = 0.;
|
||||
|
||||
// At least one endpoint is outside the clip rectangle; pick it.
|
||||
let outcode_out = if outcode1 > outcode0 { outcode1 } else { outcode0 };
|
||||
|
||||
Reference in New Issue
Block a user