]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.C
text2 chane, XFormsView
[lyx.git] / src / lyx_cb.C
index 8390461d15083d16a52c1173f6e8fe6ce712a7d7..01f8b860759dae73763be56c70b9143d7711526c 100644 (file)
@@ -472,7 +472,7 @@ void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph)
 void MenuInsertLabel(BufferView * bv, string const & arg)
 {
        string label(arg);
-       ProhibitInput(bv);
+       bv->owner()->prohibitInput();
        if (label.empty()) {
                Paragraph * par = bv->text->cursor.par();
                LyXLayout const * layout =
@@ -520,7 +520,7 @@ void MenuInsertLabel(BufferView * bv, string const & arg)
                InsetLabel * inset = new InsetLabel( p );
                bv->insertInset( inset );
        }
-       AllowInput(bv);
+       bv->owner()->allowInput();
 }