- bool isNone;
- if ( !GetRGBFromName(clr_def, &isNone,
- &clr_data.R, &clr_data.G, &clr_data.B) )
- {
- wxLogError(_("XPM: malformed colour definition '%s'!"),
- xpm_data[1+i]);
- clr_data.R = 255, clr_data.G = 0, clr_data.B = 255;
- }
- else
- {
- if ( isNone )
- {
- img.SetMask(true);
- img.SetMaskColour(255, 0, 255);
- hasMask = true;
- clr_data.R = 255, clr_data.G = 0, clr_data.B = 255;
- maskKey = key;
- }
- }
+ wxLogError(_("XPM: malformed colour definition '%s' at line %d!"),
+ xmpColLine, (int)(1 + i));
+ return wxNullImage;