Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 8, 2023
1 parent 503082c commit 82ac67c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/basic_recipes/contours.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,9 @@ function plot!(plot::T) where T <: Union{Contour, Contour3d}
end

bboxes = lift(labels, texts.text; ignore_equal_values=true) do labels, _
labels || return Rect2f()
labels || return
broadcast(texts.plots[1][1].val, texts.positions.val, texts.rotation.val) do gc, pt, rot
# drop the depth component of the bounding box for 3D
isnan(pt) || return Rect2f()
px_pos = project(scene, apply_transform(transform_func(plot), pt, space))
bb = unchecked_boundingbox(gc, to_ndim(Point3f, px_pos, 0f0), to_rotation(rot))
isfinite_rect(bb) || return Rect2f()
Expand Down

0 comments on commit 82ac67c

Please sign in to comment.