Skip to content

Commit 369079a

Browse files
committed
fix bug where limits is transformed every time
1 parent b6748c2 commit 369079a

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
@@ -867,10 +867,11 @@ ScaleContinuous <- ggproto("ScaleContinuous", Scale,
867867
call = NULL, super = NULL) {
868868
super <- super %||% self
869869
transform <- as.transform(transform %||% super$trans)
870-
limits <- allow_lambda(limits %||% super$limits)
870+
limits <- allow_lambda(limits)
871871
if (!is.null(limits) && !is.function(limits)) {
872872
limits <- transform$transform(limits)
873873
}
874+
limits <- limits %||% super$limits
874875
check_continuous_limits(limits, call = call)
875876

876877
rescaler <- allow_lambda(rescaler %||% super$rescaler)

0 commit comments

Comments
 (0)