[aseprite] 152/250: Fix loading gray color (fix #828)
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 8c97bb1ffaf35d13f4f024511c042b11157936bc
Author: David Capello <davidcapello at gmail.com>
Date: Tue Oct 13 11:48:08 2015 -0300
Fix loading gray color (fix #828)
---
src/app/color.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/color.cpp b/src/app/color.cpp
index 92eefb2..dbacd7f 100644
--- a/src/app/color.cpp
+++ b/src/app/color.cpp
@@ -125,7 +125,7 @@ Color Color::fromString(const std::string& str)
str.find("hsv{") == 0 ||
str.find("gray{") == 0) {
int c = 0, table[4] = { 0, 0, 0, 255 };
- std::string::size_type i = 4, j;
+ std::string::size_type i = str.find_first_of('{')+1, j;
while ((j = str.find_first_of(",}", i)) != std::string::npos) {
std::string element = str.substr(i, j - i);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list