]> git.lyx.org Git - features.git/commit
This patch solves this crash (due to an assertion):
authorAbdelrazak Younes <younes@lyx.org>
Thu, 17 May 2007 19:19:37 +0000 (19:19 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 17 May 2007 19:19:37 +0000 (19:19 +0000)
commit9092bffc32c3a9206818f82265ff9a6db4bc7fbe
tree5d83d2e4b05fc868ed88343f48297e77afbc0fa0
parentf827bcd96eff79b539fe18d0f68d32700aa1a617
This patch solves this crash (due to an assertion):
1) Open EmbeddedObject.lyx
2) Open Toc
3) Click on section 7.2.2 which is in the second child document
4) assertion.

This commit adds proper support for multi-part documents. With this each child document has access to the _full_ TOC tree (including LOT and LOF). This enables to switch between master and child document using the TOC.

* buffer_funcs.cpp:
  - updateLabels(): do not emit Buffer::structureChanged() signal for child document
  - checkBufferStructure(): update the structure of the master document.

* ControlToc.cpp: always use the TocBackend of the master document.

* LyXView::connectBuffer(): connect structureChanged() of master document.

* TocBackend:
  - TocItem: get rid of child_ member.
  - TocBackend::item(): only compare items from the same document.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18386 a592a061-630c-0410-9148-cb99ea01b6c8
src/TocBackend.cpp
src/TocBackend.h
src/buffer_funcs.cpp
src/frontends/LyXView.cpp
src/frontends/controllers/ControlToc.cpp