Bug #463 » useDictForLengthField.patch
dcmdata/libsrc/dcitem.cc | ||
---|---|---|
DCMDATA_DEBUG("DcmItem::readTagAndLength() ignoring explicit VR in dataset ("
|
||
<< vr.getVRName() << ") for element " << newTag
|
||
<< ", using the one from data dictionary (" << newTag.getVRName() << ")");
|
||
vr.setVR(newEVR); // TODO: Make this configurable (via an OFGlobal?)
|
||
}
|
||
} else {
|
||
/* set the VR which was read in the above created tag object */
|
||
... | ... | |
}
|
||
/* determine VR read from dataset, because this VR specifies the number of bytes for the length-field */
|
||
newEVR = vr.getEVR();
|
||
newEVR = vr.getEVR(); // This overwrites the VR from the dictionary and is what gets used for deciding the length of the length field
|
||
/* increase counter by 2 */
|
||
bytesRead += 2;
|