Skip to content

Commit 5f8538c

Browse files
committed
fix logic mistake
1 parent 978d5a2 commit 5f8538c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ gg2list <- function(p, width = NULL, height = NULL,
784784
# the logic here is similar to what p$coordinates$aspect() does,
785785
# but the ratio is scaled to the data range by plotly.js
786786
fixed_coords <- c("CoordSf", "CoordFixed", "CoordMap", "CoordQuickmap")
787-
is_fixed <- !is.null(p$coordinates$is_free())
787+
is_fixed <- isFALSE(p$coordinates$is_free())
788788
if (inherits(p$coordinates, fixed_coords) || is_fixed) {
789789
axisObj$scaleanchor <- anchor
790790
ratio <- p$coordinates$ratio %||% 1

0 commit comments

Comments
 (0)