mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
bug in editor. blowing up a little :(
This commit is contained in:
parent
9c50031048
commit
f683b1c7bd
@ -2847,7 +2847,7 @@ nsBrowserWindow::DoEditorMode(nsIWebShell *aWebShell)
|
||||
if (NS_SUCCEEDED(doc->QueryInterface(kIDOMDocumentIID, (void **)&domDoc)))
|
||||
{ //returns an addreffed domdocument
|
||||
nsIEditor *editor;
|
||||
if (NS_SUCCEEDED(nsRepository::CreateInstance(kIEditFactoryIID, nsnull, kIEditorIID, (void **)editor)))
|
||||
if (NS_SUCCEEDED(nsRepository::CreateInstance(kIEditFactoryIID, nsnull, kIEditorIID, (void **)&editor)))
|
||||
{
|
||||
editor->Init(domDoc);
|
||||
AddEditor(editor); //new call to set the editor interface this will addref
|
||||
|
Loading…
Reference in New Issue
Block a user