From c0b89ac5bfb90835ef01573267020e42d4fe070c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 23 Aug 2015 12:17:05 +0200 Subject: Imported Upstream version 1.8.0 --- plot/vrml.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 plot/vrml.c (limited to 'plot/vrml.c') diff --git a/plot/vrml.c b/plot/vrml.c old mode 100644 new mode 100755 index b077cdb..5b3f9a1 --- 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"; -- cgit v1.2.3