Skip to content

Commit 71e2c70

Browse files
authored
Check it it's save to call file_has_time!() (#1781)
1 parent d1769e9 commit 71e2c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gmtconvert.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ function gmtconvert_helper(cmd0::String, arg1, d::Dict{Symbol,Any})
6767
[:I :invert :reverse], [:L :list_only], [:N :sort], [:Q :segments], [:S :select_hdr], [:T :suppress :skip], [:W :word2num], [:Z :transpose]])
6868

6969
out = common_grd(d, cmd0, cmd, "gmtconvert ", arg1) # Finish build cmd and run it
70-
(!contains(cmd, " -b") && isa(out, GDtype) && cmd0 != "") && file_has_time!(cmd0, out) # Try to guess if time columns
70+
(!contains(cmd, " -b") && isa(out, GDtype) && cmd0 != "" && guess_T_from_ext(cmd0) == " -Td") && file_has_time!(cmd0, out) # Try to guess if time columns
7171
return out
7272
end

0 commit comments

Comments
 (0)