From 7307e071084b697b700a4e97484340b4d9aa2ecc Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 27 Feb 2008 15:54:30 +0000 Subject: [PATCH] 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 --- src/insets/InsetLabel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp index 047807577e..eb471f5d04 100644 --- a/src/insets/InsetLabel.cpp +++ b/src/insets/InsetLabel.cpp @@ -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))); }