]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.C
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / LyXAction.C
index 894becff85b1847141886026fe9a9b57ad058ece..31e60716b4e6b89d34d877f152d545fa6a62a662 100644 (file)
@@ -385,7 +385,7 @@ void LyXAction::init()
                { LFUN_TAB, "tab-forward", "", Noop },
                { LFUN_TABINSERT, "tab-insert", "", Noop },
                { LFUN_DIALOG_TABULAR_INSERT, "dialog-tabular-insert",
-                 N_("Open Insert Tabular Dialog"), Noop },
+                 N_("Insert Table"), Noop },
                { LFUN_TABULAR_FEATURE, "tabular-feature",
                  N_("Tabular Features"), Noop },
                { LFUN_INSET_TABULAR, "tabular-insert",
@@ -453,8 +453,7 @@ LyXAction::LyXAction()
 // if it doesn't exist.
 int LyXAction::searchActionArg(kb_action action, string const & arg) const
 {
-       // BUG we really want to use const_iterator (Lgb)
-       arg_map::iterator pit = lyx_arg_map.find(action);
+       arg_map::const_iterator pit = lyx_arg_map.find(action);
 
        if (pit == lyx_arg_map.end()) {
                // the action does not have any pseudoactions
@@ -464,8 +463,7 @@ int LyXAction::searchActionArg(kb_action action, string const & arg) const
                return LFUN_UNKNOWN_ACTION;
        }
 
-       // BUG we really want to use const_iterator (Lgb)
-       arg_item::iterator aci = (*pit).second.find(arg);
+       arg_item::const_iterator aci = (*pit).second.find(arg);
 
        if (aci == (*pit).second.end()) {
                // the action does not have any pseudoactions with this arg
@@ -521,8 +519,7 @@ kb_action LyXAction::retrieveActionArg(int pseudo, string & arg) const
 {
        arg.erase(); // clear it to be sure.
 
-       // BUG we really want to use const_iterator (Lgb)
-       pseudo_map::iterator pit = lyx_pseudo_map.find(pseudo);
+       pseudo_map::const_iterator pit = lyx_pseudo_map.find(pseudo);
 
        if (pit != lyx_pseudo_map.end()) {
                lyxerr[Debug::ACTION] << "Found the pseudoaction: ["