mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
4944e64733
commit
2c7396cc59
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user