~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to src/color.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        char *iter = *str;
184
184
 
185
185
        if (iter) {
186
 
                double v = strtod (iter, &iter);
 
186
                double v = g_ascii_strtod (iter, &iter);
187
187
                if (iter)
188
188
                        iter = strchr (iter, ',');
189
189
                if (iter)
280
280
        }
281
281
        
282
282
        for (int i = 0; named_colors [i].name; i++) {
283
 
                if (!g_strcasecmp (named_colors [i].name, name))
 
283
                if (!g_ascii_strcasecmp (named_colors [i].name, name))
284
284
                        return new Color (named_colors [i].color);
285
285
        }
286
286