Skip to content

Commit c6f6565

Browse files
committed
use "isTRUE()"
1 parent 5927cc9 commit c6f6565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layer-sf.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LayerSf <- ggproto("LayerSf", Layer,
3737
}
3838

3939
# automatically determine the legend type
40-
if (is.na(self$show.legend) || self$show.legend == TRUE) {
40+
if (is.na(self$show.legend) || isTRUE(self$show.legend)) {
4141
if (is_sf(data)) {
4242
if (sf_geometry_type(data) %in% c("POINT", "MULTIPOINT"))
4343
self$geom_params$legend <- "point"

0 commit comments

Comments
 (0)