]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
Fix bug #7983: Do not modify params before we know we have
[lyx.git] / src / insets / InsetBibitem.cpp
index 39076b9d997fdc8b0c8bba7043508894043a9f82..779ef7035c5cf2a1422a4897e3a05d0e64323d21 100644 (file)
@@ -318,7 +318,8 @@ void InsetBibitem::collectBibKeys(InsetIterator const & it) const
        keyvalmap.label(bibLabel());
        DocIterator doc_it(it);
        doc_it.forwardPos();
-       keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString();
+       keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString(
+               AS_STR_INSETS | AS_STR_SKIPDELETE);
        buffer().addBibTeXInfo(key, keyvalmap);
 }