Skip to content

Commit 34c415f

Browse files
authored
Merge pull request #87 from GenericMappingTools/fix-1-more-sp_ind
Fix one more situation where sp_indices had been broken
2 parents 90c584b + 60e0e89 commit 34c415f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spectral_indices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ function sp_indices(bnd1, bnd2, bnd3=nothing; index::String="", kwargs...)
786786
end
787787
end
788788

789-
if (isa(bnd1, GMT.GMTimage) || isa(bnd1, GMT.GMTgrid) || isa(parent(bnd1), GMTimage)) # Last one is when slice is a SubArray{...
789+
if (isa(bnd1, GMT.GMTimage) || isa(bnd1, GMT.GMTgrid) || isa(parent(bnd1), GItype)) # Last one is when slice is a SubArray{...
790790
if (ismask || classes !== nothing)
791791
I = mat2img(mask, isa(bnd1, GMT.GMTimage) ? bnd1 : parent(bnd1))
792792
I.layout="BRPa"

0 commit comments

Comments
 (0)