# HG changeset patch # User Sebastien Jodogne # Date 1581327430 -3600 # Node ID cccd97333e3d15a030d1fefb6f8e0cb17dacf9df # Parent 335611d2b6cd1387b7ad13a692207359da956eb8# Parent e7248fa2738f82ef392d9ea38d9ba7b7d2f885b2 integration mainline->storage-commitment diff -r 335611d2b6cd -r cccd97333e3d Core/DicomFormat/DicomMap.cpp --- a/Core/DicomFormat/DicomMap.cpp Wed Feb 05 13:24:48 2020 +0100 +++ b/Core/DicomFormat/DicomMap.cpp Mon Feb 10 10:37:10 2020 +0100 @@ -1367,8 +1367,6 @@ throw OrthancException(ErrorCode_BadFileFormat); } - Clear(); - std::map mainTags; // TODO - Create a singleton to hold this map LoadMainDicomTags(mainTags, level); diff -r 335611d2b6cd -r cccd97333e3d NEWS --- a/NEWS Wed Feb 05 13:24:48 2020 +0100 +++ b/NEWS Mon Feb 10 10:37:10 2020 +0100 @@ -23,6 +23,7 @@ Therefore, the "ClearCanvas" and "Dcm4Chee" modality manufacturer have now been deprecated. * Fix issue #156 (Chunked Dicom-web transfer uses 100% CPU) * Fix issue #165 (Boundary parameter in multipart Content-Type is too long) +* Fix issue #166 (CMake find_boost version is now broken with newer boost/cmake) Version 1.5.8 (2019-10-16) diff -r 335611d2b6cd -r cccd97333e3d Resources/CMake/BoostConfiguration.cmake --- a/Resources/CMake/BoostConfiguration.cmake Wed Feb 05 13:24:48 2020 +0100 +++ b/Resources/CMake/BoostConfiguration.cmake Mon Feb 10 10:37:10 2020 +0100 @@ -30,9 +30,20 @@ message(FATAL_ERROR "Unable to locate Boost on this system") endif() + + # Patch by xnox to fix issue #166 (CMake find_boost version is now + # broken with newer boost/cmake) + # https://bitbucket.org/sjodogne/orthanc/issues/166/ + if (POLICY CMP0093) + set(BOOST144 1.44) + else() + set(BOOST144 104400) + endif() + + # Boost releases 1.44 through 1.47 supply both V2 and V3 filesystem # http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm - if (${Boost_VERSION} LESS 104400) + if (${Boost_VERSION} LESS ${BOOST144}) add_definitions( -DBOOST_HAS_FILESYSTEM_V3=0 ) diff -r 335611d2b6cd -r cccd97333e3d Resources/Samples/CppHelpers/Logging/ILogger.h --- a/Resources/Samples/CppHelpers/Logging/ILogger.h Wed Feb 05 13:24:48 2020 +0100 +++ b/Resources/Samples/CppHelpers/Logging/ILogger.h Mon Feb 10 10:37:10 2020 +0100 @@ -8,6 +8,21 @@ namespace OrthancHelpers { + + inline std::string ShortenId(const std::string& orthancUuid) + { + size_t firstHyphenPos = orthancUuid.find_first_of('-'); + if (firstHyphenPos == std::string::npos) + { + return orthancUuid; + } + else + { + return orthancUuid.substr(0, firstHyphenPos); + } + } + + // Interface for loggers providing the same interface // in Orthanc framework or in an Orthanc plugins. // Furthermore, compared to the LOG and VLOG macros,