diff options
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r-- | src/XPM.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index 5df3ea7c9..f95580403 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -194,7 +194,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { for (; countQuotes < (2*strings) && textForm[j] != '\0'; j++) { if (textForm[j] == '\"') { if (countQuotes == 0) { - // First field: width, height, number of colors, chars per pixel + // First field: width, height, number of colours, chars per pixel const char *line0 = textForm + j + 1; // Skip width line0 = NextField(line0); @@ -205,7 +205,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { strings += atoi(line0); } if (countQuotes / 2 >= strings) { - break; // Bad height or number of colors! + break; // Bad height or number of colours! } if ((countQuotes & 1) == 0) { linesForm.push_back(textForm + j + 1); @@ -214,7 +214,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { } } if (textForm[j] == '\0' || countQuotes / 2 > strings) { - // Malformed XPM! Height + number of colors too high or too low + // Malformed XPM! Height + number of colours too high or too low linesForm.clear(); } return linesForm; |