Skip to content

Commit

Permalink
Typo in from_hexstring function fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Optiroc committed Jul 5, 2019
1 parent de40150 commit 9a53080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Color.h
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ typedef std::vector<rgba_set_t> 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";

Expand Down

0 comments on commit 9a53080

Please sign in to comment.