diff options
-rw-r--r-- | src/ZYString.h | 2 | ||||
-rw-r--r-- | src/ZYZPhoneticEditor.cc | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/ZYString.h b/src/ZYString.h index ebb8438..f90a3aa 100644 --- a/src/ZYString.h +++ b/src/ZYString.h @@ -33,8 +33,6 @@ public: String () : std::string () { } String (const gchar *str) : std::string (str) { } String (const std::string &str) : std::string (str) { } - /* TODO: remove the following line later. */ - G_DEPRECATED String (gint len) : std::string () { reserve (len); } String (const gchar ch) : std::string (1, ch) { } String & printf (const gchar *fmt, ...) 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); |