changeset 43:e4acd5f331f3

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Apr 2017 12:24:01 +0200
parents 81e2651dca17
children 027418bd1517
files Framework/Viewport/CairoSurface.cpp
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Viewport/CairoSurface.cpp	Fri Apr 14 12:03:25 2017 +0200
+++ b/Framework/Viewport/CairoSurface.cpp	Fri Apr 14 12:24:01 2017 +0200
@@ -77,11 +77,8 @@
 
   CairoSurface::CairoSurface(Orthanc::ImageAccessor& accessor)
   {
-    printf("Enter\n");
-
     if (accessor.GetFormat() != Orthanc::PixelFormat_BGRA32)
     {
-      printf("Error 1\n");
       throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageFormat);
     }      
 
@@ -94,20 +91,16 @@
       (reinterpret_cast<unsigned char*>(buffer_), CAIRO_FORMAT_RGB24, width_, height_, pitch_);
     if (!surface_)
     {
-      printf("Error 2\n");
       // Should never occur
       throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
     }
 
     if (cairo_surface_status(surface_) != CAIRO_STATUS_SUCCESS)
     {
-      printf("Error 3\n");
       LOG(ERROR) << "Bad pitch for a Cairo surface";
       cairo_surface_destroy(surface_);
       throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
     }
-
-    printf("Success\n");
   }