mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
fa1305ccd3
commit
d7a30a2ea1
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user