Skip to content

Commit

Permalink
Fix adding tags for implicit data, fixes #1607
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Feb 14, 2024
1 parent 16b18a1 commit b4ecddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dicom/dicomWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,8 @@ export class DicomWriter {
value = this.#rules[name].value;
}
// add element
let size = getDataElementPrefixByteSize(dataElement.vr, false);
size += this.#setElementValue(dataElement, [value], false);
let size = getDataElementPrefixByteSize(dataElement.vr, isImplicit);
size += this.#setElementValue(dataElement, [value], isImplicit);
rawElements.push(dataElement);
totalSize += size;
}
Expand Down

0 comments on commit b4ecddf

Please sign in to comment.