Skip to content

Commit

Permalink
fixes #1394
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jan 9, 2024
1 parent 7224c41 commit 97b13da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/plot_raster.R
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ prettyNumbs <- function(x, digits) {
out <- list()
e <- out$lim <- out$ext <- as.vector(ext(x))
hadWin <- hasWin <- FALSE
if (add && is.null(ext)) {
ext <- unlist(get.clip())[1:4]
}

if ((!is.null(ext)) || (!is.null(xlim)) || (!is.null(ylim))) {
if (!is.null(ext)) {
ext <- ext(ext)
Expand Down

0 comments on commit 97b13da

Please sign in to comment.