Skip to content

Commit c1781e4

Browse files
committed
fix bug
1 parent ddd207e commit c1781e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scale-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ binned_scale <- function(aesthetics, scale_name = deprecated(), palette, name =
319319
}
320320

321321
transform <- as.transform(transform)
322-
if (!is.null(limits)) {
322+
if (!is.null(limits) && !is.function(limits)) {
323323
limits <- transform$transform(limits)
324324
}
325325

0 commit comments

Comments
 (0)