Skip to content

Commit

Permalink
prevent name-dropping
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Oct 21, 2024
1 parent 4916e25 commit e9cad1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/scale-.R
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,8 @@ ScaleDiscrete <- ggproto("ScaleDiscrete", Scale,
}

# Breaks only occur only on values in domain
in_domain <- vec_set_intersect(breaks, limits)
breaks <- setNames(mtfrm(breaks), names(breaks))
in_domain <- vec_set_intersect(breaks, mtfrm(limits))
structure(in_domain, pos = match(in_domain, breaks))
},

Expand Down

0 comments on commit e9cad1a

Please sign in to comment.