From: robertl Date: Mon, 3 Jan 2005 14:13:01 +0000 (+0000) Subject: Fix v1 output of -^ for internal formats. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~3842 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eb030530255fe83125363ddb03b019098e52eb6a;p=gpsbabel.git Fix v1 output of -^ for internal formats. --- diff --git a/gpsbabel/vecs.c b/gpsbabel/vecs.c index 6aae8b8a5..5f9673d89 100644 --- a/gpsbabel/vecs.c +++ b/gpsbabel/vecs.c @@ -594,10 +594,15 @@ disp_formats(int version) case 0: case 1: for (vec = vec_list; vec->vec; vec++) { - if (version > 0) + /* Version 1 displays type at front of all types. + * Version 0 skips internal types. + */ + if (version > 0) { disp_v1(vec->vec->type); - if (vec->vec->type == ff_type_internal) - continue; + } else { + if (vec->vec->type == ff_type_internal) + continue; + } printf("%s\t%s\t%s\n", vec->name, vec->extension? vec->extension : "", vec->desc);