string const & command = getCmdName();
if (command != "tableofcontents" && command != "lstlistoflistings") {
LYXERR0("TOC type " << command << " not yet implemented.");
- LASSERT(false, /* */);
- return docstring();
+ LASSERT(false, return docstring());
}
- Toc const & toc = buffer().tocBackend().toc(cmd2type(command));
+ Toc const & toc = buffer().masterBuffer()->tocBackend().toc(cmd2type(command));
if (toc.empty())
return docstring();