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:
Abdelrazak Younes 2008-02-27 15:54:30 +00:00
parent 39ccaa2ea7
commit 7307e07108

View File

@ -66,15 +66,12 @@ docstring const InsetLabel::getScreenLabel(Buffer const &) const
void InsetLabel::addToToc(Buffer const & buf, void InsetLabel::addToToc(Buffer const & buf,
ParConstIterator const & cpit) const ParConstIterator const & cpit) const
{ {
ParConstIterator pit = cpit;
pit.push_back(*this);
//FIXME: It would be really, really, really nice if we could //FIXME: It would be really, really, really nice if we could
// construct a tree here with all the cross-reference to this // construct a tree here with all the cross-reference to this
// label. // label.
Toc & toc = buf.tocBackend().toc("label"); Toc & toc = buf.tocBackend().toc("label");
toc.push_back(TocItem(pit, 0, getScreenLabel(buf))); toc.push_back(TocItem(cpit, 0, getScreenLabel(buf)));
} }