Merge lp:~michael-sheldon/ubuntu-keyboard/fix-1357360 into lp:ubuntu-keyboard

Proposed by Michael Sheldon
Status: Merged
Approved by: Bill Filler
Approved revision: 226
Merged at revision: 227
Proposed branch: lp:~michael-sheldon/ubuntu-keyboard/fix-1357360
Merge into: lp:ubuntu-keyboard
Diff against target: 43 lines (+7/-7)
2 files modified
plugins/sr/src/src.pro (+6/-4)
src/view/abstracttexteditor.cpp (+1/-3)
To merge this branch: bzr merge lp:~michael-sheldon/ubuntu-keyboard/fix-1357360
Reviewer Review Type Date Requested Status
Bill Filler (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+235454@code.launchpad.net

Commit message

Fix re-entering pre-edit when in the middle of text containing multiple lines.

Description of the change

Fix re-entering pre-edit when in the middle of text containing multiple lines.

To post a comment you must log in.
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.

 * No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

 * Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?

 * Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/ubuntu-keyboard) on device or emulator?

 * Yes

If you changed the UI, was the change specified/approved by design?

 * No change

If you changed UI labels, did you update the pot file?

 * No change

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?

 * No change

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Bill Filler (bfiller) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/<package-name>) on device or emulator?
yes

Did CI run pass? If not, please explain why.
yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/sr/src/src.pro'
2--- plugins/sr/src/src.pro 2014-07-28 18:19:04 +0000
3+++ plugins/sr/src/src.pro 2014-09-22 13:24:49 +0000
4@@ -22,18 +22,20 @@
5 # generate database for presage:
6 PLUGIN_INSTALL_PATH = $${UBUNTU_KEYBOARD_LIB_DIR}/sr/
7
8-lang_db_sr.path = $$PLUGIN_INSTALL_PATH
9 lang_db_sr.commands += \
10 rm -f $$PWD/database_sr.db && \
11 text2ngram -n 1 -l -f sqlite -o $$PWD/database_sr.db $$PWD/free_ebook.txt && \
12 text2ngram -n 2 -l -f sqlite -o $$PWD/database_sr.db $$PWD/free_ebook.txt && \
13 text2ngram -n 3 -l -f sqlite -o $$PWD/database_sr.db $$PWD/free_ebook.txt
14-
15 lang_db_sr.files += $$PWD/database_sr.db
16-QMAKE_EXTRA_TARGETS += lang_db_sr
17+
18+lang_db_sr_install.files += $$PWD/database_sr.db
19+lang_db_sr_install.path = $$PLUGIN_INSTALL_PATH
20+
21+QMAKE_EXTRA_TARGETS += lang_db_sr lang_db_sr_install
22
23 target.path = $$PLUGIN_INSTALL_PATH
24-INSTALLS += target lang_db_sr
25+INSTALLS += target lang_db_sr_install
26
27 OTHER_FILES += \
28 serbianplugin.json \
29
30=== modified file 'src/view/abstracttexteditor.cpp'
31--- src/view/abstracttexteditor.cpp 2014-09-10 14:57:52 +0000
32+++ src/view/abstracttexteditor.cpp 2014-09-22 13:24:49 +0000
33@@ -1069,9 +1069,7 @@
34 singleBackspace();
35 }
36
37- text()->setSurrounding(surroundWithoutPreedit);
38- text()->setSurroundingOffset(position);
39- replaceTextWithPreedit(recreatedPreedit, 0, recreatedPreedit.size(), recreatedPreedit.size());
40+ replaceTextWithPreedit(recreatedPreedit, 0, 0, recreatedPreedit.size());
41 }
42
43 }

Subscribers

People subscribed via source and target branches