diff --git a/mozilla/editor/libeditor/base/nsEditor.cpp b/mozilla/editor/libeditor/base/nsEditor.cpp index e461a7e3d80..35b9a5696a9 100644 --- a/mozilla/editor/libeditor/base/nsEditor.cpp +++ b/mozilla/editor/libeditor/base/nsEditor.cpp @@ -2381,7 +2381,7 @@ NS_IMETHODIMP nsEditor::InsertTextIntoTextNodeImpl(const nsAString& aStringToIns nsresult result; // suppressIME s used when editor must insert text, yet this text is not // part of current ime operation. example: adjusting whitespace around an ime insertion. - if (mInIMEMode && !suppressIME) + if (mIMETextRangeList && mInIMEMode && !suppressIME) { if (!mIMETextNode) { diff --git a/mozilla/widget/src/gtk/nsWindow.cpp b/mozilla/widget/src/gtk/nsWindow.cpp index a376aa7bb19..ed9164cf6f9 100644 --- a/mozilla/widget/src/gtk/nsWindow.cpp +++ b/mozilla/widget/src/gtk/nsWindow.cpp @@ -3794,7 +3794,6 @@ nsWindow::SetXICSpotLocation(nsIMEGtkIC* aXIC, nsPoint aPoint) void nsWindow::ime_preedit_start() { - IMEComposeStart(nsnull); } void