X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmSQItem.cxx;h=82c4ed3dfb1f2986c1ebc1c517c4e36d80215346;hb=45a9005ae5c1975bbe932e43c8080a83c9daf29e;hp=709456b363566e60feb1d23080c75ebc176bcebb;hpb=b1520ca5b7b3665aa40c14b63169bfab92eece55;p=gdcm.git diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index 709456b3..82c4ed3d 100644 --- a/src/gdcmSQItem.cxx +++ b/src/gdcmSQItem.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSQItem.cxx,v $ Language: C++ - Date: $Date: 2004/06/22 13:47:33 $ - Version: $Revision: 1.11 $ + Date: $Date: 2004/06/23 02:13:14 $ + Version: $Revision: 1.15 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -90,16 +90,16 @@ gdcmSQItem::~gdcmSQItem() (Entry)->WriteCommonPart(fp, filetype); if (gdcmBinEntry* BinEntry = dynamic_cast< gdcmBinEntry* >(Entry) ) { - BinEntry->Write(fp,filetype); - return; + BinEntry->Write(fp); + return; } if (gdcmValEntry* ValEntry = dynamic_cast< gdcmValEntry* >(Entry) ) { - ValEntry->Write(fp,filetype); - return; + ValEntry->Write(fp); + return; } if (gdcmSeqEntry* SeqEntry = dynamic_cast< gdcmSeqEntry* >(Entry) ) { SeqEntry->Write(fp,filetype); - return; + return; } } } @@ -145,7 +145,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group, // that is a method of gdcmDocument :-( gdcmValEntry* Entry = (gdcmValEntry*)0; TagKey key = gdcmDictEntry::TranslateToKey(group, element); - + if ( ! ptagHT->count(key)) { // we assume a Public Dictionnary *is* loaded @@ -179,7 +179,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group, Entry->SetLength(val.length()); docEntries.insert(i,Entry); return true; - } + } if (group == (*i)->GetGroup() && element == (*i)->GetElement() ) { if ( gdcmValEntry* Entry = dynamic_cast(*i) ) @@ -188,6 +188,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group, return true; } } + return false; } //----------------------------------------------------------------------------- // Protected