Skip to content

Commit

Permalink
Fix a mysterious test failure that looks like coming from nowhere. Enfim
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Mar 3, 2021
1 parent 6b5bca9 commit 8fbbf53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 62 deletions.
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/imshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function snif_GI_set_CTRLlimits(G_I)::Bool
(G_I == "") && return false
(isa(G_I, String) && G_I[1] == '@') && return false # Remote files are very dangerous to sniff in
ginfo = grdinfo(G_I, C=:n)
if (ginfo[1].data[2] != ginfo[1].data[9] && ginfo[1].data[4] != ginfo[1].data[10])
if (isa(ginfo, Vector{GMTdataset}) && ginfo[1].data[2] != ginfo[1].data[9] && ginfo[1].data[4] != ginfo[1].data[10])
CTRL.limits[1:4] = ginfo[1].data[1:4]
return true
else
Expand Down

0 comments on commit 8fbbf53

Please sign in to comment.