changeset 2167:c4df20981eb1

support DICOMWeb version numbers like 'mainline-commitId'
author Alain Mazy <am@orthanc.team>
date Wed, 09 Oct 2024 12:49:38 +0200
parents 8b21b1f43d0e
children 14d6080660e7
files Applications/StoneWebViewer/Plugin/Plugin.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/Plugin/Plugin.cpp	Thu Oct 03 17:21:09 2024 +0200
+++ b/Applications/StoneWebViewer/Plugin/Plugin.cpp	Wed Oct 09 12:49:38 2024 +0200
@@ -61,7 +61,7 @@
       }
 
       std::string version = info["Version"].asString();
-      if (version != "mainline")
+      if (version.find("mainline") != 0)
       {
         std::vector<std::string> tokens;
         Orthanc::Toolbox::TokenizeString(tokens, version, '.');