This code is not valid anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25975 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-29 12:19:42 +00:00
parent fa1305ccd3
commit d7a30a2ea1

View File

@ -496,14 +496,7 @@ void updateLabels(Buffer const & buf, bool childonly)
Buffer & cbuf = const_cast<Buffer &>(buf);
if (buf.text().empty()) {
// FIXME: we don't call continue with updateLabels()
// here because it crashes on newly created documents.
// But the TocBackend needs to be initialised
// nonetheless so we update the tocBackend manually.
cbuf.tocBackend().update();
return;
}
BOOST_ASSERT(!buf.text().paragraphs().empty());
// do the real work
ParIterator parit = par_iterator_begin(buf.inset());