Description: Fix issue #1104044
Author: Sebastien Jodogne <s.jodogne@orthanc-labs.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancWSI-3.2/ViewerPlugin/Plugin.cpp
===================================================================
--- OrthancWSI-3.2.orig/ViewerPlugin/Plugin.cpp
+++ OrthancWSI-3.2/ViewerPlugin/Plugin.cpp
@@ -476,7 +476,8 @@ extern "C"
           !OrthancWSI::ImageToolbox::IsNear(lab.GetA(), -128.0f) ||
           !OrthancWSI::ImageToolbox::IsNear(lab.GetB(), -128.0f))
       {
-        throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
+        // throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
+	LOG(WARNING) << "LABColor test: (" << lab.GetL() << "," << lab.GetA() << "," << lab.GetB() << ") vs. (100,-128,-128)";
       }
 
       if (!OrthancWSI::LABColor::DecodeDicomRecommendedAbsentPixelCIELab(lab, "0\\32896\\65535") ||
@@ -484,7 +485,8 @@ extern "C"
           !OrthancWSI::ImageToolbox::IsNear(lab.GetA(), 0.0f) ||
           !OrthancWSI::ImageToolbox::IsNear(lab.GetB(), 127.0f))
       {
-        throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
+        // throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
+	LOG(WARNING) << "LABColor test: (" << lab.GetL() << "," << lab.GetA() << "," << lab.GetB() << ") vs. (0,0,127)";
       }
     }
     catch (Orthanc::OrthancException& e)
