Mercurial > hg > orthanc-stone
changeset 2274:e2bcbe3c7b45 default tip
fix for maxBinaryArrayLength in Orthanc::FromDcmtkBridge::ConvertLeafElement()
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 02 Jun 2026 07:20:45 +0200 |
| parents | 0d01c46b433c |
| children | |
| files | OrthancStone/Sources/Toolbox/ParsedDicomDataset.cpp |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/ParsedDicomDataset.cpp Tue Apr 14 18:06:11 2026 +0200 +++ b/OrthancStone/Sources/Toolbox/ParsedDicomDataset.cpp Tue Jun 02 07:20:45 2026 +0200 @@ -81,7 +81,11 @@ const std::set<Orthanc::DicomTag> ignoreTagLength; std::unique_ptr<Orthanc::DicomValue> value( Orthanc::FromDcmtkBridge::ConvertLeafElement( - *element, Orthanc::DicomToJsonFlags_None, 0, Orthanc::Encoding_Ascii, false, ignoreTagLength, vr)); + *element, Orthanc::DicomToJsonFlags_None, 0, +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 12) + 0, /* maxBinaryArrayLength: introduced by https://orthanc.uclouvain.be/hg/orthanc/rev/5f1e9d5cfb52 */ +#endif + Orthanc::Encoding_Ascii, false, ignoreTagLength, vr)); return value->CopyToString(result, false /* no binary */); } }
