]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBibitem.cpp
Proper fix now for bug #6846. The idea, due to JMarc, is to collect
[features.git] / src / insets / InsetBibitem.cpp
index a685ca0cac1ee36f5ecf34c627cf776bf2ea4325..5da47510386c94c929f67a3a7ebc9bfb8af314ee 100644 (file)
@@ -334,6 +334,14 @@ void InsetBibitem::updateBuffer(ParIterator const & it, UpdateType utype)
        } else {
                autolabel_ = from_ascii("??");
        }
+       if (!buffer().isBibInfoCacheValid()) {
+               BiblioInfo bi = buffer().masterBibInfo();
+               docstring const key = getParam("key");
+               BibTeXInfo keyvalmap(false);
+               keyvalmap.label(bibLabel());
+               keyvalmap[from_ascii("ref")] = it.paragraph().asString();
+               bi[key] = keyvalmap;
+       }
 }