Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #194 from JuliDi/fix-datainspector-inexacterror
Browse files Browse the repository at this point in the history
Fix InexactError with DataInspector
  • Loading branch information
SimonDanisch authored Jun 8, 2021
2 parents 3762f68 + 4c78ffa commit 7196094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7196094

Please sign in to comment.