- cache.diff added to fix build issue with orthanc 1.12.8 OBS-URL: https://build.opensuse.org/request/show/1287585 OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc-webviewer?expand=0&rev=23
20 lines
795 B
Diff
20 lines
795 B
Diff
--- a/Plugin/Cache/CacheManager.cpp Tue Apr 15 13:46:42 2025 +0200
|
|
+++ b/Plugin/Cache/CacheManager.cpp Sat Jun 14 09:09:56 2025 +0200
|
|
@@ -467,8 +467,14 @@
|
|
try
|
|
{
|
|
#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0)
|
|
- std::unique_ptr<Orthanc::IMemoryBuffer> buffer(
|
|
- pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown));
|
|
+ std::unique_ptr<Orthanc::IMemoryBuffer> buffer;
|
|
+
|
|
+# if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 8)
|
|
+ pimpl_->storage_.ReadWhole(uuid, Orthanc::FileContentType_Unknown);
|
|
+# else
|
|
+ pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown);
|
|
+# endif
|
|
+
|
|
buffer->MoveToString(content);
|
|
#else
|
|
pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown);
|