Superscript and Subscript text styles should be mutually exclusive, b=100825, r=jfrancis, sr=kin, a=asa/drivers

This commit is contained in:
cmanske%netscape.com 2002-07-24 03:53:14 +00:00
Родитель 68dd69dd13
Коммит a9de1759c0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -429,12 +429,12 @@ nsStyleUpdatingCommand::ToggleState(nsIEditorShell *aEditorShell, const char* aT
if (tagName.Equals(NS_LITERAL_STRING("sub")))
{
removeName.AssignWithConversion("sup");
rv = aEditorShell->RemoveTextProperty(tagName.get(), nsnull);
rv = aEditorShell->RemoveTextProperty(removeName.get(), nsnull);
}
else if (tagName.Equals(NS_LITERAL_STRING("sup")))
{
removeName.AssignWithConversion("sub");
rv = aEditorShell->RemoveTextProperty(tagName.get(), nsnull);
rv = aEditorShell->RemoveTextProperty(removeName.get(), nsnull);
}
if (NS_SUCCEEDED(rv))
rv = aEditorShell->SetTextProperty(tagName.get(), nsnull, nsnull);