]> git.lyx.org Git - features.git/commitdiff
fix bug: an Inset label is not editable of course.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 15:54:30 +0000 (15:54 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 15:54:30 +0000 (15:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23283 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetLabel.cpp

index 047807577ec1de21a0c2699008cb597ccfb9cc5b..eb471f5d0401368c30d920c57fac574a272aaeee 100644 (file)
@@ -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)));
 }