From: dirk Date: Sun, 10 Aug 2014 12:05:17 +0000 (+0000) Subject: ping now also calls the new read method in Magick++. X-Git-Tag: 7.0.1-0~2111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5678eda356af71bb94f5ce79e1edfcda134133f5;p=imagemagick ping now also calls the new read method in Magick++. --- diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index 5eb2b53af..9636ee7f3 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -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_,