Vincent van Ravesteijn schreef:
[email protected] schreef:
Author: tommaso
Date: Tue Sep  8 03:29:07 2009
New Revision: 31340
URL: http://www.lyx.org/trac/changeset/31340

Modified: lyx-devel/trunk/src/TocBackend.cpp
============================================================================== --- lyx-devel/trunk/src/TocBackend.cpp Tue Sep 8 01:58:56 2009 (r31339) +++ lyx-devel/trunk/src/TocBackend.cpp Tue Sep 8 03:29:07 2009 (r31340)
@@ -163,8 +163,10 @@
 void TocBackend::update()
 {
     tocs_.clear();
-    DocIterator dit;
-    buffer_->inset().addToToc(dit);
+    if (! buffer_->isInternal()) {
+        DocIterator dit;
+        buffer_->inset().addToToc(dit);
+    }
 }

I would make sure that buffer_ is _never_ an internal buffer.
You can see this by opening the outliner, put the cursor in the advanced search field and try to promote a section in your document with the context menu. Kaboom!.


Vincent

Reply via email to