]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
support for table cell rotations; fileformat change
[lyx.git] / src / insets / InsetBibitem.cpp
index 39076b9d997fdc8b0c8bba7043508894043a9f82..3aaaceacbdd8d954fb53fcd1b692b4f3f75e8dd9 100644 (file)
@@ -314,11 +314,14 @@ docstring bibitemWidest(Buffer const & buffer, OutputParams const & runparams)
 void InsetBibitem::collectBibKeys(InsetIterator const & it) const
 {
        docstring const key = getParam("key");
+       docstring const label = getParam("label");
        BibTeXInfo keyvalmap(false);
-       keyvalmap.label(bibLabel());
+       keyvalmap.key(key);
+       keyvalmap.label(label);
        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);
 }