mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1084302 Fix wrong aIsCommit argument values of DispatchCompositionChangeEvent() calls in DeleteText() r=karlt
This commit is contained in:
parent
10f9ec04d1
commit
10c20e9b7b
@ -1462,7 +1462,7 @@ nsGtkIMModule::DeleteText(const int32_t aOffset, const uint32_t aNChars)
|
||||
if (wasComposing) {
|
||||
selOffset = mCompositionStart;
|
||||
if (editorHadCompositionString &&
|
||||
!DispatchCompositionChangeEvent(mSelectedString, false)) {
|
||||
!DispatchCompositionChangeEvent(mSelectedString, true)) {
|
||||
PR_LOG(gGtkIMLog, PR_LOG_ALWAYS,
|
||||
(" FAILED, quitting from DeletText"));
|
||||
return NS_ERROR_FAILURE;
|
||||
@ -1589,7 +1589,7 @@ nsGtkIMModule::DeleteText(const int32_t aOffset, const uint32_t aNChars)
|
||||
|
||||
nsAutoString compositionString;
|
||||
GetCompositionString(GetContext(), compositionString);
|
||||
if (!DispatchCompositionChangeEvent(compositionString, true)) {
|
||||
if (!DispatchCompositionChangeEvent(compositionString, false)) {
|
||||
PR_LOG(gGtkIMLog, PR_LOG_ALWAYS,
|
||||
(" FAILED, restoring composition string"));
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user