From: jpr Date: Wed, 8 Feb 2006 10:13:55 +0000 (+0000) Subject: Avoid dciodvfy warning when creating ex-nihilo a Dicom File X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8d48517d991f26a09ecd10890b43e2bb9f786235;p=gdcm.git Avoid dciodvfy warning when creating ex-nihilo a Dicom File --- diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index 88069e5c..3e13ecd8 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -4,8 +4,8 @@ Module: $RCSfile: gdcmFileHelper.cxx,v $ Language: C++ - Date: $Date: 2006/02/03 16:37:48 $ - Version: $Revision: 1.90 $ + Date: $Date: 2006/02/08 10:13:55 $ + Version: $Revision: 1.91 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1606,7 +1606,7 @@ void FileHelper::CheckMandatoryElements() gdcm::Orientation *o = gdcm::Orientation::New(); std::string ori = o->GetOrientation ( FileInternal ); o->Delete(); - if (ori != "\\" ) + if (ori != "\\" && ori != GDCM_UNFOUND) CheckMandatoryEntry(0x0020,0x0020,ori); else CheckMandatoryEntry(0x0020,0x0020,"");