diff options
author | Peng Wu <alexepico@gmail.com> | 2018-11-30 10:31:17 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-11-30 10:31:17 +0800 |
commit | 664be06dd071779211ef85b23ae8e7561ea152c1 (patch) | |
tree | b16516e80782483fbb87cf27f5756e58792b307d /src/ZYZPhoneticEditor.cc | |
parent | 0b7002ff0c74c4ae4eed3d016e7e9bf6ebb27191 (diff) | |
download | ibus-libzhuyin-664be06dd071779211ef85b23ae8e7561ea152c1.tar.gz ibus-libzhuyin-664be06dd071779211ef85b23ae8e7561ea152c1.tar.xz ibus-libzhuyin-664be06dd071779211ef85b23ae8e7561ea152c1.zip |
fixes insertSymbol method
Diffstat (limited to 'src/ZYZPhoneticEditor.cc')
-rw-r--r-- | src/ZYZPhoneticEditor.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc index bf337f7..5c95a22 100644 --- a/src/ZYZPhoneticEditor.cc +++ b/src/ZYZPhoneticEditor.cc @@ -948,8 +948,9 @@ PhoneticEditor::insertSymbol (guint keyval) if (is_full_width_symbol (keyval)) { if (is_special_symbol (keyval)) { - String choice; - assert (convert_special_symbol (keyval, choice)); + String choice = keyval; + if (m_props.modeFullWidth ()) + assert (convert_special_symbol (keyval, choice)); String lookup; int ch = find_lookup_key (choice); |