diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index 72e5a6da18..ed841f235c 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -496,14 +496,7 @@ void updateLabels(Buffer const & buf, bool childonly) Buffer & cbuf = const_cast(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());