# HG changeset patch # User Sebastien Jodogne # Date 1683210928 -7200 # Node ID b466ca3d17bbbf35e4d422184b4d220167d13590 # Parent dc8fe64a452fabee6272579af865c250d2816c10 fix compatibility of NumpyWriter with wasm diff -r dc8fe64a452f -r b466ca3d17bb OrthancFramework/Sources/Images/NumpyWriter.cpp --- a/OrthancFramework/Sources/Images/NumpyWriter.cpp Wed May 03 15:48:11 2023 +0200 +++ b/OrthancFramework/Sources/Images/NumpyWriter.cpp Thu May 04 16:35:28 2023 +0200 @@ -154,7 +154,7 @@ { if (compress) { -#if ORTHANC_ENABLE_ZLIB == 1 +#if (ORTHANC_ENABLE_ZLIB == 1) && (ORTHANC_SANDBOXED == 0) // This is the default name of the first array if arrays are // specified as positional arguments in "numpy.savez()" // https://numpy.org/doc/stable/reference/generated/numpy.savez.html @@ -172,7 +172,7 @@ writer.Write(uncompressed); writer.Close(); #else - throw OrthancException(ErrorCode_InternalError, "Orthanc was compiled without support for zlib"); + throw OrthancException(ErrorCode_InternalError, "Orthanc was compiled without support for ZIP"); #endif } else