Skip to content

Commit

Permalink
Fix wrong null value, invalid when the tag is not in the dictionary.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jun 17, 2016
1 parent a47fcc1 commit 61002bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/dicom/dicomParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ dwv.dicom.DicomParser.prototype.readDataElement = function(reader, offset, impli
else {
// implicit VR?
if(implicit) {
vr = null;
vr = "UN";
var dict = dwv.dicom.dictionary;
if ( typeof dict[tag.group] !== "undefined" &&
typeof dict[tag.group][tag.element] !== "undefined" ) {
Expand Down Expand Up @@ -1353,12 +1353,12 @@ dwv.dicom.DicomElementsWrapper.prototype.getElementAsString = function ( dicomEl
}
message += ")";
var itemDelimElement = {
"group": "0xFFFE",
"element": "0xE00D",
"vr": "na",
"vl": "0",
"value": [message]
};
"group": "0xFFFE",
"element": "0xE00D",
"vr": "na",
"vl": "0",
"value": [message]
};
line += "\n";
line += this.getElementAsString(itemDelimElement, prefix + " ");

Expand Down

0 comments on commit 61002bc

Please sign in to comment.