Fixed not clearing font color ('defaul') bug 89700, r=akkana, sr=kin

This commit is contained in:
cmanske%netscape.com 2001-07-10 23:57:04 +00:00
parent 449476cffa
commit 2a81718082

View File

@ -950,7 +950,10 @@ function EditorSelectColor(colorType, mouseEvent)
{
if (currentColor != gColorObj.TextColor)
{
window.editorShell.SetTextProperty("font", "color", gColorObj.TextColor);
if (gColorObj.TextColor)
window.editorShell.SetTextProperty("font", "color", gColorObj.TextColor);
else
window.editorShell.RemoveTextProperty("font", "color");
}
// Update the command state (this will trigger color button update)
goUpdateCommand("cmd_fontColor");