Skip to content

Commit

Permalink
element needs tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Djeisen642 committed Jul 16, 2016
1 parent b9f6fea commit 1758682
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/dicomParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ var dicomParser = (function (dicomParser)
while(byteStream.position < maxPosition)
{
var element = dicomParser.readDicomElementExplicit(byteStream, dataSet.warnings, options.untilTag);
if (element) {
if (('vr' in element) || ('length') in element) {
elements[element.tag] = element;
}
switch (typeof options.untilTag) {
Expand Down Expand Up @@ -1860,7 +1860,7 @@ var dicomParser = (function (dicomParser)
var isUntilTag = false;
if (typeof untilTag === 'object' && tag === untilTag.tag) {
if (untilTag.include === false) {
return false;
return {tag: tag};
} else {
isUntilTag = true;
}
Expand Down Expand Up @@ -1963,7 +1963,7 @@ var dicomParser = (function (dicomParser)
var isUntilTag = false;
if (typeof untilTag === 'object' && tag === untilTag.tag) {
if (untilTag.include === false) {
return false;
return {tag: tag};
} else {
isUntilTag = true;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/dicomParser.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/parseDicomDataSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var dicomParser = (function (dicomParser)
while(byteStream.position < maxPosition)
{
var element = dicomParser.readDicomElementExplicit(byteStream, dataSet.warnings, options.untilTag);
if (element) {
if (('vr' in element) || ('length') in element) {
elements[element.tag] = element;
}
switch (typeof options.untilTag) {
Expand Down
2 changes: 1 addition & 1 deletion src/readDicomElementExplicit.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var dicomParser = (function (dicomParser)
var isUntilTag = false;
if (typeof untilTag === 'object' && tag === untilTag.tag) {
if (untilTag.include === false) {
return false;
return {tag: tag};
} else {
isUntilTag = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/readDicomElementImplicit.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var dicomParser = (function (dicomParser)
var isUntilTag = false;
if (typeof untilTag === 'object' && tag === untilTag.tag) {
if (untilTag.include === false) {
return false;
return {tag: tag};
} else {
isUntilTag = true;
}
Expand Down

0 comments on commit 1758682

Please sign in to comment.