]> Creatis software - gdcm.git/commitdiff
* Test/VTKTest*.cxx : bug fix. Now the viewer is used only when the
authorregrain <regrain>
Wed, 19 Jan 2005 10:49:47 +0000 (10:49 +0000)
committerregrain <regrain>
Wed, 19 Jan 2005 10:49:47 +0000 (10:49 +0000)
     -V option is set

Testing/VTKTestRead.cxx
Testing/VTKTestReadSeq.cxx
Testing/VTKTestWrite.cxx

index 4a6dc5d..655c41d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: VTKTestRead.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/19 10:43:01 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/01/19 10:49:47 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -236,7 +236,8 @@ int VTKTestRead(int argc, char *argv[])
       ret += VTKReadTest(t,viewer,filename,pngfile,show);
    }
    t->Delete();
-   viewer->Delete();
+   if(viewer)
+      viewer->Delete();
 
    return ret;
 }
index 7339eb8..8084618 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: VTKTestReadSeq.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/19 10:43:01 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/01/19 10:49:47 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -238,7 +238,8 @@ int VTKTestReadSeq(int argc, char *argv[])
       ret += VTKReadSeqTest(t,viewer,filename,pngfile,show);
    }
    t->Delete();
-   viewer->Delete();
+   if(viewer)
+      viewer->Delete();
 
    return ret;
 }
index e782dd7..c6aac0e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: VTKTestWrite.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/19 10:43:01 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/01/19 10:49:47 $
+  Version:   $Revision: 1.2 $
 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -240,7 +240,8 @@ int VTKTestWrite(int argc, char *argv[])
       ret += VTKWriteTest(t,viewer,filename,pngfile,show);
    }
    t->Delete();
-   viewer->Delete();
+   if(viewer)
+      viewer->Delete();
 
    return ret;
 }