Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return false from CanvasState::is_point_in_path for NaN/infinite values #24573

Merged
merged 1 commit into from Oct 29, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Return false from CanvasState::IsPointInPath for NaN/infinite values

  • Loading branch information
teapotd committed Oct 28, 2019
commit 35a48a7577794c2929dbe8d912f8993da5c6b508
@@ -1241,6 +1241,10 @@ impl CanvasState {
y: f64,
fill_rule: CanvasFillRule,
) -> bool {
if !(x.is_finite() && y.is_finite()) {
return false;
}

let fill_rule = match fill_rule {
CanvasFillRule::Nonzero => FillRule::Nonzero,
CanvasFillRule::Evenodd => FillRule::Evenodd,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.