]> granicus.if.org Git - imagemagick/commitdiff
ping now also calls the new read method in Magick++.
authordirk <dirk@git.imagemagick.org>
Sun, 10 Aug 2014 12:05:17 +0000 (12:05 +0000)
committerdirk <dirk@git.imagemagick.org>
Sun, 10 Aug 2014 12:05:17 +0000 (12:05 +0000)
Magick++/lib/Image.cpp

index 5eb2b53afa3aefbc8635d0cd54c22b57c902b9ca..9636ee7f334f945ed522ce981fc40fe8aaf180d0 100644 (file)
@@ -3663,8 +3663,7 @@ void Magick::Image::ping(const std::string &imageSpec_)
   GetPPException;
   options()->fileName(imageSpec_);
   newImage=PingImage(imageInfo(),exceptionInfo);
-  replaceImage(newImage);
-  ThrowPPException;
+  read(newImage,exceptionInfo);
 }
 
 void Magick::Image::ping(const Blob& blob_)
@@ -3674,8 +3673,7 @@ void Magick::Image::ping(const Blob& blob_)
 
   GetPPException;
   newImage=PingBlob(imageInfo(),blob_.data(),blob_.length(),exceptionInfo);
-  replaceImage(newImage);
-  ThrowPPException;
+  read(newImage,exceptionInfo);
 }
 
 void Magick::Image::pixelColor(const ssize_t x_,const ssize_t y_,