[lasem] svg_traits: fix parsing of rgb() color attribute.



commit d8d285f93b93c43421533023c67458e31df81536
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Aug 20 21:39:12 2010 +0200

    svg_traits: fix parsing of rgb() color attribute.
    
    Skip spaces before first number.

 src/lsmsvgtraits.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lsmsvgtraits.c b/src/lsmsvgtraits.c
index d7c0314..f223dab 100644
--- a/src/lsmsvgtraits.c
+++ b/src/lsmsvgtraits.c
@@ -265,6 +265,8 @@ _parse_color (char *string,
 
 		string += 4; /* strlen ("rgb(") */
 
+		lsm_str_skip_spaces (&string);
+
 		for (i = 0; i < 3; i++) {
 			if (!lsm_str_parse_double (&string, &value))
 				break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]