зеркало из https://github.com/mozilla/pjs.git
bug in editor. blowing up a little :(
This commit is contained in:
Родитель
abc488c35f
Коммит
435d909749
|
@ -2847,7 +2847,7 @@ nsBrowserWindow::DoEditorMode(nsIWebShell *aWebShell)
|
||||||
if (NS_SUCCEEDED(doc->QueryInterface(kIDOMDocumentIID, (void **)&domDoc)))
|
if (NS_SUCCEEDED(doc->QueryInterface(kIDOMDocumentIID, (void **)&domDoc)))
|
||||||
{ //returns an addreffed domdocument
|
{ //returns an addreffed domdocument
|
||||||
nsIEditor *editor;
|
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);
|
editor->Init(domDoc);
|
||||||
AddEditor(editor); //new call to set the editor interface this will addref
|
AddEditor(editor); //new call to set the editor interface this will addref
|
||||||
|
|
Загрузка…
Ссылка в новой задаче