]> git.lyx.org Git - lyx.git/blobdiff - src/trans.C
small changes to ButtonController usage
[lyx.git] / src / trans.C
index 122e7f3cf033b8bf8072169db3f952a974e1bc87..066694fc2b1c7a676b8988bf1752bd7a085a3819 100644 (file)
@@ -150,7 +150,7 @@ void Trans::AddDeadkey(tex_accent accent, string const & keys,
        kmod_list_[accent] = new kmod_list_decl;
        kmod_list_[accent]->data = keys;
        kmod_list_[accent]->accent = accent;
-       if (allowed == "all") { 
+       if (allowed == "native") { 
                kmod_list_[accent]->allowed= lyx_accent_table[accent].native;
        } else { 
                kmod_list_[accent]->allowed = allowed;
@@ -371,7 +371,7 @@ int Trans::Load(string const & language)
        if (res == 0) {
                name_ = language;
        } else
-               name_.clear();
+               name_.erase();
 
        return res;
 }