]> git.lyx.org Git - features.git/commitdiff
Add debug output, harmless
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 15 May 2007 16:29:04 +0000 (16:29 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 15 May 2007 16:29:04 +0000 (16:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18347 a592a061-630c-0410-9148-cb99ea01b6c8

src/TocBackend.cpp

index 60736bd8feb5dec3e983f2b82ad3837b51bf017c..f0dacd500b75827838784f49f198ebbd822669ea 100644 (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();