forked from mirrors/gecko-dev
Bug 499437 - nsHTMLEditor::ReplaceStyleSheet fails to replace if both sheets are loaded, r+sr=neil
This commit is contained in:
parent
e7d4b33ab3
commit
43ec1ef72c
1 changed files with 1 additions and 1 deletions
|
|
@ -3372,7 +3372,7 @@ nsHTMLEditor::ReplaceStyleSheet(const nsAString& aURL)
|
|||
if (EnableExistingStyleSheet(aURL))
|
||||
{
|
||||
// Disable last sheet if not the same as new one
|
||||
if (!mLastStyleSheetURL.IsEmpty() && mLastStyleSheetURL.Equals(aURL))
|
||||
if (!mLastStyleSheetURL.IsEmpty() && !mLastStyleSheetURL.Equals(aURL))
|
||||
return EnableStyleSheet(mLastStyleSheetURL, PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue