]> granicus.if.org Git - imagemagick/commitdiff
Changed type of the exception.
authordirk <dirk@git.imagemagick.org>
Sun, 20 Apr 2014 12:31:59 +0000 (12:31 +0000)
committerdirk <dirk@git.imagemagick.org>
Sun, 20 Apr 2014 12:31:59 +0000 (12:31 +0000)
Magick++/lib/ChannelMoments.cpp
Magick++/lib/Magick++/ChannelMoments.h

index 60e864ce3f16740ffa9f346dee91441f48b246c6..652a5ce16363a54a5aeed7b1ef3372ec160b89de 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "Magick++/Include.h"
 #include "Magick++/ChannelMoments.h"
+#include "Magick++/Exception.h"
 
 using namespace std;
 
@@ -98,7 +99,7 @@ double Magick::ChannelMoments::ellipseIntensity(void) const
 double Magick::ChannelMoments::huInvariants(const size_t index_) const
 {
   if (index_ > 7)
-    throw std::out_of_range("Valid range for index is 0-7");
+    throw ErrorOption("Valid range for index is 0-7");
 
   return(_huInvariants.at(index_));
 }
\ No newline at end of file
index 8b52f0933c48dc3895e1bb150cdfc3e5ff918f9d..fd7773da211b865b8333ba4caba1311ad4121022 100644 (file)
@@ -9,7 +9,6 @@
 #define Magick_ChannelMoments_header
 
 #include "Magick++/Include.h"
-#include <stdexcept>
 #include <vector>
 
 namespace Magick