From 22452958f9a7cd683328db704ebd64282baa7061 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 3 Dec 2009 19:54:12 +0000 Subject: [PATCH] The BibTeX bibliography only includes BibTeX entries. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32296 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BiblioInfo.h | 2 ++ src/insets/InsetBibtex.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h index e0f8f64588..037b9bf58f 100644 --- a/src/BiblioInfo.h +++ b/src/BiblioInfo.h @@ -92,6 +92,8 @@ public: docstring const & key() const { return bib_key_; } /// docstring entryType() const { return entry_type_; } + /// + bool isBibTeX() const { return is_bibtex_; } private: /// like operator[], except, if the field is empty, it will attempt /// to get the data from xref BibTeXInfo object, which would normally diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index c86652a1f1..459098486f 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -939,7 +939,7 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const BiblioInfo const & bi = buffer().masterBibInfo(); for (; cit != cen; ++cit) { BiblioInfo::const_iterator const bt = bi.find(*cit); - if (bt == bi.end()) + if (bt == bi.end() || !bt->second.isBibTeX()) continue; binfo.push_back(&(bt->second)); } -- 2.39.2