Skip to content

Commit

Permalink
fixed #968
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Nov 25, 2024
1 parent 72c1edf commit ab4c393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tmap_save.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ tmap_save = function(tm=NULL, filename=NA, device=NULL, width=NA, height=NA, uni
print(tm_i + do.call("tm_options", args_inset), vp=vp_i)
}, insets_tm, insets_vp)
} else if (inherits(insets_tm, "tmap") && inherits(insets_vp, "viewport")) {
print(insets_tm + do.call("tm_options", args_inset), insets_vp)
print(insets_tm + do.call("tm_options", args_inset), vp = insets_vp)
} else {
stop("Insets and/or its viewports not in the correct format")
}
Expand Down

0 comments on commit ab4c393

Please sign in to comment.