- priority: 5 --> 2
DataElement::IsEmpty() is currently implemented as follows:
/// Check if Data Element is empty
bool IsEmpty() const { return ValueField == 0 || (GetByteValue() && GetByteValue()->IsEmpty()); }
Instead, it should be sufficient to just return ValueField == 0.
Mathieu asked me to make a bug report on this issue:
Re: [Gdcm2] GDCM 2.0.10 Reader::ReadUpToTag crash because of DataElement::GetValue()
From: Mathieu Malaterre <mathieu.malaterre@gm...> - 2009-01-20 17:29