]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Navigator:
[lyx.git] / src / Paragraph.cpp
index 811a3deecb50bac6b01dd567b8397e67ef8e8fbb..eb966b8029cc7e616f0c180f9ee52e28508e9c57 100644 (file)
@@ -2508,8 +2508,8 @@ int Paragraph::checkBiblio(Buffer const & buffer)
 
        // There was no inset at the beginning, so we need to create one with
        // the key and label of the one we erased.
-       InsetBibitem * inset = new InsetBibitem(InsetCommandParams(BIBITEM_CODE));
-       inset->setBuffer(const_cast<Buffer &>(buffer));
+       InsetBibitem * inset = 
+               new InsetBibitem(buffer, InsetCommandParams(BIBITEM_CODE));
        // restore values of previously deleted item in this par.
        if (!oldkey.empty())
                inset->setParam("key", oldkey);