changeset 5695:380a71e0d7e7 find-refactoring

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2024 10:16:20 +0200
parents 4a85ee2cbe1f
children 0f8b6214308a
files OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Fri Jul 12 07:59:00 2024 +0200
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Fri Jul 12 10:16:20 2024 +0200
@@ -3356,7 +3356,7 @@
           throw OrthancException(ErrorCode_ParameterOutOfRange,
                                  "Field \"" + std::string(KEY_LIMIT) + "\" must be a positive integer");
         }
-        else
+        else if (tmp != 0)  // This is for compatibility with Orthanc 1.12.4
         {
           finder.SetLimitsCount(static_cast<uint64_t>(tmp));
         }