Fixed bug #10242 - crash when typing space after IME composition

This commit is contained in:
tague%netscape.com 1999-07-22 23:13:59 +00:00
Родитель 7da3da678d
Коммит 27e1b6498d
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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);