comparison RenderingPlugin/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp @ 2108:7cff3c404430

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 18 Dec 2023 22:41:49 +0100
parents 517ef20aef74
children c23eef785569
comparison
equal deleted inserted replaced
2107:5970030a413c 2108:7cff3c404430
2605 2605
2606 int priority = 0; 2606 int priority = 0;
2607 2607
2608 if (body.isMember(KEY_PRIORITY)) 2608 if (body.isMember(KEY_PRIORITY))
2609 { 2609 {
2610 if (body[KEY_PRIORITY].type() != Json::booleanValue) 2610 if (body[KEY_PRIORITY].type() != Json::intValue)
2611 { 2611 {
2612 #if HAS_ORTHANC_EXCEPTION == 1 2612 #if HAS_ORTHANC_EXCEPTION == 1
2613 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat, 2613 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat,
2614 "Option \"" + std::string(KEY_PRIORITY) + 2614 "Option \"" + std::string(KEY_PRIORITY) +
2615 "\" must be an integer"); 2615 "\" must be an integer");