]> granicus.if.org Git - imagemagick/commitdiff
Removed depth restriction.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 31 Dec 2017 15:04:22 +0000 (16:04 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 31 Dec 2017 15:04:42 +0000 (16:04 +0100)
Magick++/lib/Image.cpp

index b7fc11acca6d961b866bfbce87fcfba7e40076ff..1aadf87c4f5ed7a4ad92f0b1fa02e88e34615092 100644 (file)
@@ -691,15 +691,9 @@ Magick::Point Magick::Image::density(void) const
 
 void Magick::Image::depth(const size_t depth_)
 {
-  size_t
-    depth = depth_;
-
-  if (depth > MAGICKCORE_QUANTUM_DEPTH)
-    depth=MAGICKCORE_QUANTUM_DEPTH;
-
   modifyImage();
-  image()->depth=depth;
-  options()->depth(depth);
+  image()->depth=depth_;
+  options()->depth(depth_);
 }
 
 size_t Magick::Image::depth(void) const