[EMAIL PROTECTED] schrieb:
Author: younes
Date: Wed May 16 18:43:14 2007
New Revision: 18370
Modified: lyx-devel/trunk/src/TocBackend.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/TocBackend.cpp?rev=18370
==============================================================================
--- lyx-devel/trunk/src/TocBackend.cpp (original)
+++ lyx-devel/trunk/src/TocBackend.cpp Wed May 16 18:43:14 2007
@@ -123,14 +123,10 @@
void TocBackend::updateItem(ParConstIterator const & par_it)
{
- 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;
- }
+ // TODO should not happen,
+ // a call to TocBackend::update() is missing somewhere
+ if (toc("tableofcontents").empty())
+ return;
BufferParams const & bufparams = buffer_->params();
const int min_toclevel = bufparams.getTextClass().min_toclevel();
Why did you remove the debug info?
Michael