From 43ec1ef72c79ece99d68f10f5cd389a558dc0e18 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Fri, 26 Jun 2009 22:31:36 -0700 Subject: [PATCH] Bug 499437 - nsHTMLEditor::ReplaceStyleSheet fails to replace if both sheets are loaded, r+sr=neil --- editor/libeditor/html/nsHTMLEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index e07405eb6cd5..3b96e695e820 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -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;