Support both spellings of gray/grey as palette choice.

This commit is contained in:
mcafee%netscape.com 1999-09-17 05:39:30 +00:00
parent 7cc1b02b8b
commit 2c8556a5c8

View File

@ -156,7 +156,7 @@ NS_IMETHODIMP nsStdColorPicker::Init(nsIContent *aContent)
mNumCols = 10;
mColors = sizeof(NosePalette) / sizeof(char *);
}
else if (palette.EqualsIgnoreCase("gray"))
else if (palette.EqualsIgnoreCase("gray") || palette.EqualsIgnoreCase("grey"))
{
printf("gray picked\n");
mPalette = GrayPalette;