diff --git a/src/Color.h b/src/Color.h index ccdf27d..881e24e 100644 --- a/src/Color.h +++ b/src/Color.h @@ -34,9 +34,9 @@ inline std::string to_hexstring(rgba_t value, bool pound = true, bool alpha = fa // css style hex string to rgba value inline rgba_t from_hexstring(const std::string& str) { std::string s = str; - s.erase(std::remove(s.begin(), s.end(), '#'), str.end()); - s.erase(std::remove(s.begin(), s.end(), '"'), str.end()); - s.erase(std::remove(s.begin(), s.end(), '\''), str.end()); + s.erase(std::remove(s.begin(), s.end(), '#'), s.end()); + s.erase(std::remove(s.begin(), s.end(), '"'), s.end()); + s.erase(std::remove(s.begin(), s.end(), '\''), s.end()); if (s.size() == 6) s.insert(6, 2, 'f'); diff --git a/src/Common.h b/src/Common.h index aab20de..c54b7ab 100755 --- a/src/Common.h +++ b/src/Common.h @@ -36,7 +36,7 @@ typedef std::vector rgba_set_vec_t; namespace sfc { -constexpr const char* VERSION = "0.8.5"; +constexpr const char* VERSION = "0.8.6"; constexpr const char* COPYRIGHT = "Copyright (c) 2017-2019 David Lindecrantz";