From 9b424310ddd5033481f5b95929645e9014882398 Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 7 Jan 2005 22:24:00 +0000 Subject: [PATCH] ENH: minor style --- src/gdcmDocEntrySet.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/gdcmDocEntrySet.cxx b/src/gdcmDocEntrySet.cxx index 4a2dbf68..4f0e9ce2 100644 --- a/src/gdcmDocEntrySet.cxx +++ b/src/gdcmDocEntrySet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntrySet.cxx,v $ Language: C++ - Date: $Date: 2005/01/07 22:22:02 $ - Version: $Revision: 1.39 $ + Date: $Date: 2005/01/07 22:24:00 $ + Version: $Revision: 1.40 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -151,14 +151,14 @@ DictEntry *DocEntrySet::GetDictEntryByNumber(uint16_t group, uint16_t elem, DictEntry *goodEntry = dictEntry; std::string goodVR = vr; - if (elem==0x0000) goodVR="UL"; + if (elem == 0x0000) goodVR="UL"; - if (goodEntry) + if ( goodEntry ) { - if ( goodEntry->GetVR() != goodVR + if ( goodVR != goodEntry->GetVR() && goodVR != GDCM_UNKNOWN ) { - goodEntry=NULL; + goodEntry = NULL; } } @@ -167,7 +167,8 @@ DictEntry *DocEntrySet::GetDictEntryByNumber(uint16_t group, uint16_t elem, { if (dictEntry) { - goodEntry = NewVirtualDictEntry(group, elem, goodVR,"FIXME",dictEntry->GetName()); + goodEntry = NewVirtualDictEntry(group, elem, goodVR, "FIXME", + dictEntry->GetName() ); } else { -- 2.48.1