# HG changeset patch # User Alain Mazy # Date 1730905941 -3600 # Node ID 94df151039f1340ad1f08422fb7a8ad4fd810cf3 # Parent 4d21befb15019fb721f7cf98422ead2f6fadba8b re-fix DICOMWeb version checks diff -r 4d21befb1501 -r 94df151039f1 Applications/StoneWebViewer/Plugin/Plugin.cpp --- 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 tokens; Orthanc::Toolbox::TokenizeString(tokens, version, '.');