Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.cpp @ 3691:4922bdd046dd
Fix issue #140 (Modifying private tags with REST API changes VR from LO to UN) - DANGEROUS COMMIT
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Feb 2020 21:44:09 +0100 |
parents | 94f4a18a79cc |
children | 898903022836 1f4910999fe7 |
comparison
equal
deleted
inserted
replaced
3690:a9ce35d67c3c | 3691:4922bdd046dd |
---|---|
822 call.PushJson(origin); | 822 call.PushJson(origin); |
823 | 823 |
824 Json::Value target; | 824 Json::Value target; |
825 call.ExecuteToJson(target, true); | 825 call.ExecuteToJson(target, true); |
826 | 826 |
827 filtered_.reset(ParsedDicomFile::CreateFromJson(target, DicomFromJsonFlags_None)); | 827 filtered_.reset(ParsedDicomFile::CreateFromJson(target, DicomFromJsonFlags_None, |
828 "" /* no private creator */)); | |
828 currentQuery_ = filtered_.get(); | 829 currentQuery_ = filtered_.get(); |
829 } | 830 } |
830 } | 831 } |
831 | 832 |
832 matcher_.reset(new HierarchicalMatcher(*currentQuery_)); | 833 matcher_.reset(new HierarchicalMatcher(*currentQuery_)); |
2920 | 2921 |
2921 std::string dicom; | 2922 std::string dicom; |
2922 | 2923 |
2923 { | 2924 { |
2924 std::auto_ptr<ParsedDicomFile> file | 2925 std::auto_ptr<ParsedDicomFile> file |
2925 (ParsedDicomFile::CreateFromJson(json, static_cast<DicomFromJsonFlags>(p.flags))); | 2926 (ParsedDicomFile::CreateFromJson(json, static_cast<DicomFromJsonFlags>(p.flags), |
2927 "" /* TODO - private creator */)); | |
2926 | 2928 |
2927 if (p.pixelData) | 2929 if (p.pixelData) |
2928 { | 2930 { |
2929 file->EmbedImage(*reinterpret_cast<const ImageAccessor*>(p.pixelData)); | 2931 file->EmbedImage(*reinterpret_cast<const ImageAccessor*>(p.pixelData)); |
2930 } | 2932 } |