change config_error to std::runtime_error in scale_hsla struct
This commit is contained in:
parent
f0a696264c
commit
cfd48fe3cd
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,6 @@
|
||||||
// mapnik
|
// mapnik
|
||||||
#include <mapnik/config.hpp>
|
#include <mapnik/config.hpp>
|
||||||
#include <mapnik/color.hpp>
|
#include <mapnik/color.hpp>
|
||||||
#include <mapnik/config_error.hpp>
|
|
||||||
#include <mapnik/util/variant.hpp>
|
#include <mapnik/util/variant.hpp>
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
|
@ -34,6 +33,7 @@
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <iterator> // for std::back_insert_iterator
|
#include <iterator> // for std::back_insert_iterator
|
||||||
#include <functional> // std::ref
|
#include <functional> // std::ref
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
namespace mapnik { namespace filter {
|
namespace mapnik { namespace filter {
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ struct scale_hsla : image_filter_base
|
||||||
a0 < 0 || a0 > 1 ||
|
a0 < 0 || a0 > 1 ||
|
||||||
a1 < 0 || a1 > 1)
|
a1 < 0 || a1 > 1)
|
||||||
{
|
{
|
||||||
throw config_error("scale-hsla values must be between 0 and 1");
|
throw std::runtime_error("scale-hsla values must be between 0 and 1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inline bool is_identity() const {
|
inline bool is_identity() const {
|
||||||
|
|
Loading…
Reference in a new issue