]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.C
Revert this change as it sneaked in and wasn't discussed yet.
[lyx.git] / src / insets / insetlabel.C
index 590b50a65dd85f6a5218a630da96d86c7524a6c1..64c77d8a90fb48ad7434a012ab60050ea002a63d 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *         Copyright 1995 Matthias Ettrich
  *          Copyright 1995-2001 The LyX Team.
  *
@@ -53,12 +53,16 @@ void InsetLabel::edit(BufferView * bv, int, int, unsigned int)
                        bool flag = bv->ChangeRefsIfUnique(getContents(),
                                                           new_contents);
                        setContents(new_contents);
+#if 0
                        bv->text->redoParagraph(bv);
                        if (flag) {
                                bv->redraw();
                                bv->fitCursor();
                        } else
                                bv->update(bv->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
+#else
+                       bv->updateInset(this, !flag);
+#endif
                }
        }
 }
@@ -93,6 +97,6 @@ int InsetLabel::linuxdoc(Buffer const *, ostream & os) const
 
 int InsetLabel::docbook(Buffer const *, ostream & os) const
 {
-       os << "<anchor id=\"" << getContents() << "\" ></anchor>";
+       os << "<anchor id=\"" << getContents() << "\">";
        return 0;
 }