From bf89c14459597d4837f5dce267cda07ade2a8d82 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Fri, 11 Jun 1999 19:02:04 +0000 Subject: [PATCH] We now check the return result from the call to DeleteSelectionAndPrepareToCreateNode() in InsertElement(). It was causing a bug that prevented the InsertLink dialog from closing. git-svn-id: svn://10.0.0.236/trunk@34818 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsHTMLEditor.cpp | 2 +- mozilla/editor/libeditor/html/nsHTMLEditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/base/nsHTMLEditor.cpp b/mozilla/editor/base/nsHTMLEditor.cpp index fbd518d1960..a344a4e278f 100644 --- a/mozilla/editor/base/nsHTMLEditor.cpp +++ b/mozilla/editor/base/nsHTMLEditor.cpp @@ -2190,7 +2190,7 @@ nsHTMLEditor::InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection) } } - DeleteSelectionAndPrepareToCreateNode(parentSelectedNode, offsetOfNewNode); + res = DeleteSelectionAndPrepareToCreateNode(parentSelectedNode, offsetOfNewNode); if (NS_SUCCEEDED(res)) { nsCOMPtr newNode = do_QueryInterface(aElement); diff --git a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index fbd518d1960..a344a4e278f 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp @@ -2190,7 +2190,7 @@ nsHTMLEditor::InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection) } } - DeleteSelectionAndPrepareToCreateNode(parentSelectedNode, offsetOfNewNode); + res = DeleteSelectionAndPrepareToCreateNode(parentSelectedNode, offsetOfNewNode); if (NS_SUCCEEDED(res)) { nsCOMPtr newNode = do_QueryInterface(aElement);