void TocBackend::updateItem(ParConstIterator const & par_it)
{
- // TODO should not happen,
- // a call to TocBackend::update() is missing somewhere
- if (toc("tableofcontents").empty())
+ if (toc("tableofcontents").empty()) {
+ // TODO should not happen,
+ // a call to TocBackend::update() is missing somewhere
+ LYXERR(Debug::INFO)
+ << "TocBackend.cpp: TocBackend::updateItem"
+ << "called but the TOC is empty" << std::endl;
return;
+ }
BufferParams const & bufparams = buffer_->params();
const int min_toclevel = bufparams.getTextClass().min_toclevel();