# HG changeset patch # User Sebastien Jodogne # Date 1492165441 -7200 # Node ID e4acd5f331f3a4c848a071a5c34542860be607e6 # Parent 81e2651dca173a7d7ef324a3ad1919e736e339c0 fix diff -r 81e2651dca17 -r e4acd5f331f3 Framework/Viewport/CairoSurface.cpp --- 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(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"); }