Add debug output, harmless

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18347 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-05-15 16:29:04 +00:00
parent 4944e64733
commit 2c7396cc59

View File

@ -123,10 +123,14 @@ Toc const & TocBackend::toc(std::string const & type) const
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();