]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.C
More fixes to the autocollapsing of paragraphs.
[lyx.git] / src / lyx_cb.C
index d94564d492d4ee8be92ff59615f46c3142f2aeab..75920bd012eb9313b554d2d592cc47f98d434634 100644 (file)
@@ -476,7 +476,7 @@ void MenuInsertLabel(BufferView * bv, string const & arg)
        string label(arg);
        bv->owner()->prohibitInput();
        if (label.empty()) {
-               Paragraph * par = bv->text->cursor.par();
+               Paragraph * par = bv->getLyXText()->cursor.par();
                LyXLayout const * layout =
                        &textclasslist.Style(bv->buffer()->params.textclass,
                                             par->getLayout());