Commit 4ac379a7c for imagemagick.org
commit 4ac379a7c43ddeba92c859a8607cd72f205054eb
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Fri May 22 16:10:09 2026 +0200
Don't raise exceptions for warnings in the constructors of CoderInfo and Color.
diff --git a/Magick++/lib/CoderInfo.cpp b/Magick++/lib/CoderInfo.cpp
index a740dfc2f..b20f0f7ae 100644
--- a/Magick++/lib/CoderInfo.cpp
+++ b/Magick++/lib/CoderInfo.cpp
@@ -59,7 +59,7 @@ Magick::CoderInfo::CoderInfo(const std::string &name_)
GetPPException;
magickInfo=GetMagickInfo(name_.c_str(),exceptionInfo);
- ThrowPPException(false);
+ ThrowPPException(true);
if (magickInfo == 0)
throwExceptionExplicit(MagickCore::OptionError,"Coder not found",
name_.c_str());
diff --git a/Magick++/lib/Color.cpp b/Magick++/lib/Color.cpp
index 4c802b0b7..69f111311 100644
--- a/Magick++/lib/Color.cpp
+++ b/Magick++/lib/Color.cpp
@@ -265,7 +265,7 @@ const Magick::Color& Magick::Color::operator=(const std::string &color_)
delete _pixel;
_pixel = (PixelInfo *)NULL;
}
- ThrowPPException(false);
+ ThrowPPException(true);
return(*this);
}