]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
InsetInfo: enable inset dissolve
[lyx.git] / src / insets / InsetCitation.cpp
index e1f40eaebf04f7c14cfd377199f837e21bf0abea..ba45f691a37cbe0cef69fdab1313ca90e6e2c02a 100644 (file)
@@ -552,7 +552,10 @@ void InsetCitation::forOutliner(docstring & os, size_t const, bool const) const
 // engine, e.g. \cite[]{} for the basic engine.
 void InsetCitation::latex(otexstream & os, OutputParams const & runparams) const
 {
-       BiblioInfo const & bi = buffer().masterBibInfo();
+       // When this is a child compiled on its own, we use the childs
+       // own bibinfo, else the master's
+       BiblioInfo const & bi = runparams.is_child
+                       ? buffer().masterBibInfo() : buffer().bibInfo();
        docstring const key = getParam("key");
        // "keyonly" command: output the plain key and stop.
        if (getCmdName() == "keyonly") {