]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.cpp
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetBibtex.cpp
index e2b88ca1a9673ebfc09912dc3999be4d79f66ec3..bf70c44ae8ce08de6b91a5812cd0bb3b1b379e5d 100644 (file)
@@ -266,6 +266,15 @@ void InsetBibtex::latex(otexstream & os, OutputParams const & runparams) const
            && buffer().params().multibib == "child")
                return;
 
+       if (runparams.inDeletedInset) {
+               // We cannot strike-out bibligraphies,
+               // so we just output a note.
+               os << "\\textbf{"
+                  << buffer().B_("[BIBLIOGRAPHY DELETED!]")
+                  << "}";
+               return;
+       }
+
        string style = to_utf8(getParam("options")); // maybe empty! and with bibtotoc
        string bibtotoc;
        if (prefixIs(style, "bibtotoc")) {