Minor whitespace fix for clutter color parsing of hsla(h,s,l,a)
authorCraig R. Hughes <craig.git@rungie.com>
Tue, 8 Nov 2011 01:00:45 +0000 (17:00 -0800)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 10 Nov 2011 12:57:34 +0000 (12:57 +0000)
Previously, if there was whitespace between "l" and the comma before the
alpha value, parsing would fail.  This patch allows that whitespace
making it consistent with whitespace being allowed everywhere else.

https://bugzilla.gnome.org/show_bug.cgi?id=663594

clutter/clutter-color.c

index e8ecf44..17b8b3c 100644 (file)
@@ -589,6 +589,7 @@ parse_hsla (ClutterColor *color,
   str += 1;
 
   l = CLAMP (number / 100.0, 0.0, 1.0);
+  skip_whitespace (&str);
 
   /* alpha (optional); since the alpha channel value can only
    * be between 0 and 1 we don't use the parse_rgb_value()