Skip to content

Commit

Permalink
fixes #1664
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Dec 9, 2024
1 parent 3b79e25 commit 131870b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_legend.R
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ retro_labels <- function(x, lat=TRUE) {
graphics::rect(e$xmin, e$ymin, e$xmax, e$ymax, border=ticboxcol, xpd=NA)


if (!is.null(x$leg$title)) {
if (isTRUE("title" %in% names(x$leg))) {
leg_i <- x$leg$leg_i
if (is.null(leg_i)) leg_i = 1
if (leg_i <= length(x$leg$title)) {
Expand Down

0 comments on commit 131870b

Please sign in to comment.