]> git.lyx.org Git - lyx.git/commit
Table cells are insets, but not from the point of view of DocIterators
authorRichard Heck <rgheck@lyx.org>
Mon, 24 Feb 2014 19:36:13 +0000 (14:36 -0500)
committerRichard Heck <rgheck@lyx.org>
Wed, 26 Feb 2014 01:54:29 +0000 (20:54 -0500)
commit6a85db2307d04581b2e6146b399ab863277f53c1
treea55c4abe119a04db290cfe78096078872d5821ce
parent214f7ed262ee77229f6c648e0ae23d52c11fae5a
Table cells are insets, but not from the point of view of DocIterators
and Cursors. So just calling InsetText::addToToc for the cells causes
problems, because InsetText::addToToc then adds the cell inset itself
as part of the DocIterator. This then leads to assertions, such as bug

The solution is to refactor InsetText::addToToc so that we can call the
iterating part without adding the inset.
src/insets/InsetTabular.cpp
src/insets/InsetTabular.h
src/insets/InsetText.cpp
src/insets/InsetText.h