]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetfloatlist.C
index 162df1857088dcd918fedf21d9bf3a8bd2eab5e5..54d5f67a0dc203a8ccc9e3986be76eafd297a0fa 100644 (file)
@@ -51,7 +51,7 @@ string const InsetFloatList::getScreenLabel(Buffer const & buf) const
        FloatList const & floats = buf.params().getLyXTextClass().floats();
        FloatList::const_iterator it = floats[getCmdName()];
        if (it != floats.end())
-               return _(it->second.listName());
+               return buf.B_(it->second.listName());
        else
                return _("ERROR: Nonexistent float type!");
 }
@@ -82,7 +82,7 @@ void InsetFloatList::read(Buffer const & buf, LyXLex & lex)
        } else
                lex.printError("InsetFloatList: Parse error: `$$Token'");
        while (lex.isOK()) {
-               lex.nextToken();
+               lex.next();
                token = lex.getString();
                if (token == "\\end_inset")
                        break;
@@ -113,7 +113,7 @@ int InsetFloatList::latex(Buffer const & buf, ostream & os,
                        }
                } else {
                        os << "\\listof{" << getCmdName() << "}{"
-                          << cit->second.listName() << "}\n";
+                          << buf.B_(cit->second.listName()) << "}\n";
                }
        } else {
                os << "%%\\listof{" << getCmdName() << "}{"