From a9de1759c061f36b3a89b4d1ce393fc165d5975b Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Wed, 24 Jul 2002 03:53:14 +0000 Subject: [PATCH] Superscript and Subscript text styles should be mutually exclusive, b=100825, r=jfrancis, sr=kin, a=asa/drivers --- editor/composer/src/nsComposerCommands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/composer/src/nsComposerCommands.cpp b/editor/composer/src/nsComposerCommands.cpp index 6ac1266304c..ac09c2fb11d 100644 --- a/editor/composer/src/nsComposerCommands.cpp +++ b/editor/composer/src/nsComposerCommands.cpp @@ -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);