diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-08-23 12:17:05 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-08-23 12:17:05 +0200 |
commit | c0b89ac5bfb90835ef01573267020e42d4fe070c (patch) | |
tree | 733c16852d964d84b7565af4bdaff0bcca901b88 /plot/vrml.c | |
parent | 094535c010320967639e8e86f974d878e80baa72 (diff) |
Imported Upstream version 1.8.0upstream/1.8.0
Diffstat (limited to 'plot/vrml.c')
-rwxr-xr-x[-rw-r--r--] | plot/vrml.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plot/vrml.c b/plot/vrml.c index b077cdb..5b3f9a1 100644..100755 --- a/plot/vrml.c +++ b/plot/vrml.c @@ -1314,8 +1314,10 @@ static void check_format() { /* Return the global format file extension */ static char *ret_ext(vrml_fmt fmt) { - if (fmt == fmt_uninit) + if (fmt == fmt_uninit) { check_format(); + fmt = g_fmt; + } if (fmt == fmt_x3dom) return ".x3d.html"; @@ -1327,8 +1329,10 @@ static char *ret_ext(vrml_fmt fmt) { /* Return the global format type name */ static char *ret_format(vrml_fmt fmt) { - if (fmt == fmt_uninit) + if (fmt == fmt_uninit) { check_format(); + fmt = g_fmt; + } if (fmt == fmt_x3dom) return "X3DOM"; |