From: joncruz Date: Thu, 6 Sep 2007 06:47:13 +0000 (+0000) Subject: Preserve paint styles with multiple components X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1442555fae4cb2e097745c1c8f38a879af225e7;p=inkscape.git Preserve paint styles with multiple components --- diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp index 57003064a..9f7a5a87c 100644 --- a/src/svg/svg-color.cpp +++ b/src/svg/svg-color.cpp @@ -481,11 +481,13 @@ bool sp_svg_read_icc_color( gchar const *str, gchar const **end_ptr, SVGICCColor // Name must start with a certain type of character good = false; } else { - while ( g_ascii_isdigit(*str) || g_ascii_islower(*str) || (*str == '-') ) { + while ( g_ascii_isdigit(*str) || g_ascii_isalpha(*str) || (*str == '-') ) { if ( dest ) { dest->colorProfile += *str; } str++; + gboolean aa = g_ascii_isalpha(*str); + gboolean bb = aa; } while ( g_ascii_isspace(*str) || *str == ',' ) { str++;