diff Framework/Orthanc/Core/Images/ImageBuffer.cpp @ 11:4b7e0244881f

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Oct 2016 12:14:03 +0200
parents 2dbe613f6c93
children
line wrap: on
line diff
--- a/Framework/Orthanc/Core/Images/ImageBuffer.cpp	Mon Oct 24 14:45:05 2016 +0200
+++ b/Framework/Orthanc/Core/Images/ImageBuffer.cpp	Wed Oct 26 12:14:03 2016 +0200
@@ -87,7 +87,9 @@
 
   ImageBuffer::ImageBuffer(PixelFormat format,
                            unsigned int width,
-                           unsigned int height)
+                           unsigned int height,
+                           bool forceMinimalPitch) :
+    forceMinimalPitch_(forceMinimalPitch)
   {
     Initialize();
     SetWidth(width);
@@ -158,16 +160,6 @@
   }
 
 
-  void ImageBuffer::SetMinimalPitchForced(bool force)
-  {
-    if (force != forceMinimalPitch_)
-    {
-      changed_ = true;
-      forceMinimalPitch_ = force;
-    }
-  }
-
-
   void ImageBuffer::AcquireOwnership(ImageBuffer& other)
   {
     // Remove the content of the current image