Skip to content

Commit e9cad1a

Browse files
committed
prevent name-dropping
1 parent 4916e25 commit e9cad1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/scale-.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,8 @@ ScaleDiscrete <- ggproto("ScaleDiscrete", Scale,
10291029
}
10301030

10311031
# Breaks only occur only on values in domain
1032-
in_domain <- vec_set_intersect(breaks, limits)
1032+
breaks <- setNames(mtfrm(breaks), names(breaks))
1033+
in_domain <- vec_set_intersect(breaks, mtfrm(limits))
10331034
structure(in_domain, pos = match(in_domain, breaks))
10341035
},
10351036

0 commit comments

Comments
 (0)