Skip to content

Commit

Permalink
fixes #1413
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jan 30, 2024
1 parent 19688fa commit 742d282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- `plot<SpatRaster>(add=TRUE)` sampled the raster data without considering the extent of the map. [#1394](https://github.com/rspatial/terra/issues/1394) by Márcia Barbosa
- `plot<SpatRaster>(add=TRUE)` now only considers the first layer of a multi-layer SpatRaster [1395](https://github.com/rspatial/terra/issues/1395) by Márcia Barbosa
- `set.cats` failed with a tibble was used instead of a data.frame [#1406](https://github.com/rspatial/terra/issues/1406) by Mike Koontz
- `polys` argument "alpha" was ignored if a single color was used. [#1413](https://github.com/rspatial/terra/issues/1413) by Derek Friend


## enhancements

Expand Down
2 changes: 1 addition & 1 deletion R/lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ setMethod("polys", signature(x="SpatVector"),
}
if (missing(col)) {
col <- NULL
} else if (length(col) > 1) {
} else {
col <- .getCols(length(x), col, alpha)
}
out <- list(main_cols=col)
Expand Down

0 comments on commit 742d282

Please sign in to comment.