]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.C
some reindentation, revert workarea xpos++, constify, remove all traces of LyXParagra...
[lyx.git] / src / insets / insetlabel.C
index dc507c9752b8466b22a1ee1379d115be9f262e52..ddff0337d1abe0081a19c16deef392e567f61747 100644 (file)
@@ -20,6 +20,7 @@
 #include "support/lstrings.h" //frontStrip, strip
 #include "lyxtext.h"
 #include "buffer.h"
+#include "gettext.h"
 
 using std::ostream;
 using std::vector;
@@ -35,7 +36,7 @@ InsetLabel::InsetLabel(InsetCommandParams const & p)
 
 vector<string> const InsetLabel::getLabelList() const
 {
-       return vector<string>(1,getContents());
+       return vector<string>(1, getContents());
 }
 
 
@@ -60,7 +61,7 @@ void InsetLabel::Edit(BufferView * bv, int, int, unsigned int)
                                bv->redraw();
                                bv->fitCursor(getLyXText(bv));
                        } else
-                               bv->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
+                               bv->update(bv->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
                }
        }
 }