]> git.lyx.org Git - features.git/commitdiff
Handle deleted BibTeX/Biblatex bibliographies
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 6 Mar 2020 12:49:10 +0000 (13:49 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:53 +0000 (15:48 +0200)
Since we cannot strike-out these, we output a placeholder when
show changes in output is active.

Fixes #11762

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")) {