Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/Plugin/Plugin.cpp @ 1960:40f8009ceb4e
added compatibility against release 1.10.1 of the DICOMweb plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Oct 2022 17:17:14 +0200 |
parents | a2955abe4c2e |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
1959:889892e51545 | 1960:40f8009ceb4e |
---|---|
63 std::string version = info["Version"].asString(); | 63 std::string version = info["Version"].asString(); |
64 if (version != "mainline") | 64 if (version != "mainline") |
65 { | 65 { |
66 std::vector<std::string> tokens; | 66 std::vector<std::string> tokens; |
67 Orthanc::Toolbox::TokenizeString(tokens, version, '.'); | 67 Orthanc::Toolbox::TokenizeString(tokens, version, '.'); |
68 if (tokens.size() != 2) | 68 if (tokens.size() != 2 && |
69 tokens.size() != 3) | |
69 { | 70 { |
70 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, | 71 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, |
71 "Bad version of the DICOMweb plugin: " + version); | 72 "Bad version of the DICOMweb plugin: " + version); |
72 } | 73 } |
73 | 74 |