mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
fix bug: an Inset label is not editable of course.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23283 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
39ccaa2ea7
commit
7307e07108
@ -66,15 +66,12 @@ docstring const InsetLabel::getScreenLabel(Buffer const &) const
|
||||
void InsetLabel::addToToc(Buffer const & buf,
|
||||
ParConstIterator const & cpit) const
|
||||
{
|
||||
ParConstIterator pit = cpit;
|
||||
pit.push_back(*this);
|
||||
|
||||
//FIXME: It would be really, really, really nice if we could
|
||||
// construct a tree here with all the cross-reference to this
|
||||
// label.
|
||||
|
||||
Toc & toc = buf.tocBackend().toc("label");
|
||||
toc.push_back(TocItem(pit, 0, getScreenLabel(buf)));
|
||||
toc.push_back(TocItem(cpit, 0, getScreenLabel(buf)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user