changeset 2178:94df151039f1 default tip

re-fix DICOMWeb version checks
author Alain Mazy <am@orthanc.team>
date Wed, 06 Nov 2024 16:12:21 +0100
parents 4d21befb1501
children
files Applications/StoneWebViewer/Plugin/Plugin.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/Plugin/Plugin.cpp	Wed Oct 23 19:27:56 2024 +0200
+++ b/Applications/StoneWebViewer/Plugin/Plugin.cpp	Wed Nov 06 16:12:21 2024 +0100
@@ -63,8 +63,8 @@
       }
 
       std::string version = info["Version"].asString();
-      if (version == "mainline" ||
-          boost::starts_with(version, "mainline-"))  // Allow DICOMweb versions such as "mainline-commitId"
+      if (version != "mainline" &&
+          !boost::starts_with(version, "mainline-"))  // Allow DICOMweb versions such as "mainline-commitId"
       {
         std::vector<std::string> tokens;
         Orthanc::Toolbox::TokenizeString(tokens, version, '.');