Inset * readInset(Lexer & lex, Buffer const & buf)
{
...
// test the different insets
if (tmptok == "LatexCommand") {
lex.next();
string const cmdName = lex.getString();
lex.pushToken(cmdName);
...
} else if (cmdName == "listofalgorithms") {
inset.reset(new InsetFloatList("algorithm"));
} else if (cmdName == "listoffigures") {
inset.reset(new InsetFloatList("figure"));
} else if (cmdName == "listoftables") {
inset.reset(new InsetFloatList("table"));
So far as I can see, the above can never be reached, because float lists
don't appear in the form:
\begin_inset LatexCommand
but rather as:
\begin_inset FloatList figure
Is it there for some actual reason? Should it be removed, or should
InsetFloatList behave better?
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto