From d7a30a2ea1511138d418ab682aca9c9e45f7bea0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 29 Jul 2008 12:19:42 +0000 Subject: [PATCH] This code is not valid anymore. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25975 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/buffer_funcs.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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());