comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5695:380a71e0d7e7 find-refactoring

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2024 10:16:20 +0200
parents 023787ecaff2
children 0c2f0d72d143 1891a8c2dbb4
comparison
equal deleted inserted replaced
5694:4a85ee2cbe1f 5695:380a71e0d7e7
3354 if (tmp < 0) 3354 if (tmp < 0)
3355 { 3355 {
3356 throw OrthancException(ErrorCode_ParameterOutOfRange, 3356 throw OrthancException(ErrorCode_ParameterOutOfRange,
3357 "Field \"" + std::string(KEY_LIMIT) + "\" must be a positive integer"); 3357 "Field \"" + std::string(KEY_LIMIT) + "\" must be a positive integer");
3358 } 3358 }
3359 else 3359 else if (tmp != 0) // This is for compatibility with Orthanc 1.12.4
3360 { 3360 {
3361 finder.SetLimitsCount(static_cast<uint64_t>(tmp)); 3361 finder.SetLimitsCount(static_cast<uint64_t>(tmp));
3362 } 3362 }
3363 } 3363 }
3364 3364