changeset 1878:42c2994a82fe

Force V1 file format creation if -2 not specified
author bert <bert>
date Thu, 09 Sep 2004 19:25:32 +0000
parents e1ea3f6f3301
children c444aa48e6df
files progs/mincconvert/mincconvert.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/progs/mincconvert/mincconvert.c
+++ b/progs/mincconvert/mincconvert.c
@@ -10,7 +10,10 @@
 @CREATED    : 2003-12-17
 @MODIFIED   : 
  * $Log: mincconvert.c,v $
- * Revision 1.1  2004-04-27 15:27:57  bert
+ * Revision 1.2  2004-09-09 19:25:32  bert
+ * Force V1 file format creation if -2 not specified
+ *
+ * Revision 1.1  2004/04/27 15:27:57  bert
  * Initial checkin, MINC 1 <-> MINC 2 converter
  *
  * 
@@ -26,7 +29,7 @@
               express or implied warranty.
 ---------------------------------------------------------------------------- */
 #ifndef lint
-static char rcsid[]="$Header: /private-cvsroot/minc/progs/mincconvert/mincconvert.c,v 1.1 2004-04-27 15:27:57 bert Exp $";
+static char rcsid[]="$Header: /private-cvsroot/minc/progs/mincconvert/mincconvert.c,v 1.2 2004-09-09 19:25:32 bert Exp $";
 #endif
 
 #include <stdlib.h>
@@ -132,6 +135,9 @@
     if (v2format) {
         flags |= MI2_CREATE_V2;
     }
+    else {
+        flags |= MI2_CREATE_V1; /* Force V1 format */
+    }
 
     opts.struct_version = MI2_OPTS_V1;
     if (compress == -1) {