diff options
author | Christian Persch <chpe@gnome.org> | 2011-12-11 21:15:50 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2011-12-11 21:15:50 +0100 |
commit | 34d461d48888047a9ea91bee54e37ce16e38fc8d (patch) | |
tree | 3b7673d7f3ff32be4b7565761843dacc088f9438 | |
parent | 9ef72159297dbd5fcfcdd9af97571bfc8f64c366 (diff) | |
download | libcroco-34d461d48888047a9ea91bee54e37ce16e38fc8d.tar.gz |
Use case-insensitive string comparision of colour names
https://bugzilla.gnome.org/show_bug.cgi?id=459403
-rw-r--r-- | src/cr-rgb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cr-rgb.c b/src/cr-rgb.c index 7a82459..ffd7746 100644 --- a/src/cr-rgb.c +++ b/src/cr-rgb.c @@ -459,7 +459,7 @@ cr_rgb_color_name_compare (const void *a, const char *a_color_name = a; const CRRgb *rgb = b; - return strcmp (a_color_name, (const char *) rgb->name); + return g_ascii_strcasecmp (a_color_name, (const char *) rgb->name); } /** |