diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-09-07 12:54:56 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-10-06 11:10:04 +0200 |
commit | 7df324b4561a6551812bdfa5b72ba1c937148c41 (patch) | |
tree | 4e5aab705ccb5b45be04b27cb49ecaa897c0959f /RepositoryModule_build.mk | |
parent | d99c7586edf41e1b22f1ef363859a86bf397e35f (diff) |
lok: IME: preserve formatting when inserting at the end of paragraph
There was a problem with inserting characters at the end of paragraph in
online.
When user set text to bolded, inserted few characters, then switched
bold off.
When trying to put another non-bolded character - the result was still
bolded.
It is caused by IME mechanics which gathers all elements for composition
and at the end deletes these characters and inserts again but using
document interface to keep undo records. During that operation
formatting has been lost.
This change does the same in reversed order so we first put new string
correctly formatted at the end. Then we remove old leftovers. In result
formatting is correct.
Change-Id: Ieb498afdbe42c0080c30ea3db994cedc98e89847
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121774
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122477
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123100
Tested-by: Jenkins
Diffstat (limited to 'RepositoryModule_build.mk')
0 files changed, 0 insertions, 0 deletions