зеркало из https://github.com/mozilla/gecko-dev.git
Fixed bug #10242 - crash when typing space after IME composition
This commit is contained in:
Родитель
7da3da678d
Коммит
27e1b6498d
|
@ -3849,6 +3849,9 @@ nsEditor::CreateTxnForIMEText(const nsString & aStringToInsert,
|
|||
{
|
||||
nsresult result;
|
||||
|
||||
if (mIMETextNode==nsnull)
|
||||
BeginComposition();
|
||||
|
||||
result = TransactionFactory::GetNewTransaction(IMETextTxn::GetCID(), (EditTxn **)aTxn);
|
||||
if (nsnull!=*aTxn) {
|
||||
result = (*aTxn)->Init(mIMETextNode,mIMETextOffset,mIMEBufferLength,aTextRangeList,aStringToInsert,mPresShell);
|
||||
|
|
|
@ -3849,6 +3849,9 @@ nsEditor::CreateTxnForIMEText(const nsString & aStringToInsert,
|
|||
{
|
||||
nsresult result;
|
||||
|
||||
if (mIMETextNode==nsnull)
|
||||
BeginComposition();
|
||||
|
||||
result = TransactionFactory::GetNewTransaction(IMETextTxn::GetCID(), (EditTxn **)aTxn);
|
||||
if (nsnull!=*aTxn) {
|
||||
result = (*aTxn)->Init(mIMETextNode,mIMETextOffset,mIMEBufferLength,aTextRangeList,aStringToInsert,mPresShell);
|
||||
|
|
Загрузка…
Ссылка в новой задаче