From 4c78ffab1738680b8a95abf4d7fd13ec22559644 Mon Sep 17 00:00:00 2001 From: JuliDi <20155974+JuliDi@users.noreply.github.com> Date: Tue, 8 Jun 2021 17:47:35 +0200 Subject: [PATCH] Fix InexactError --- src/screen.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.jl b/src/screen.jl index c6467d4..16fa20d 100644 --- a/src/screen.jl +++ b/src/screen.jl @@ -524,7 +524,7 @@ function Makie.pick_sorted(scene::SceneLike, screen::Screen, xy, range) picks = pick_native(screen, IRect2D(x0, y0, dx, dy)) selected = filter(x -> x[1] > 0 && haskey(screen.cache2plot, x[1]), unique(vec(picks))) - distances = [range^2 for _ in selected] + distances = [Float64(range)^2 for _ in selected] x, y = xy .+ 1 .- Vec2f0(x0, y0) for i in 1:dx, j in 1:dy if picks[i, j][1] > 0