]> git.lyx.org Git - features.git/commitdiff
The BibTeX bibliography only includes BibTeX entries.
authorRichard Heck <rgheck@comcast.net>
Thu, 3 Dec 2009 19:54:12 +0000 (19:54 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 3 Dec 2009 19:54:12 +0000 (19:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32296 a592a061-630c-0410-9148-cb99ea01b6c8

src/BiblioInfo.h
src/insets/InsetBibtex.cpp

index e0f8f645887fc94ab62fd436f35e4fffeb500f1e..037b9bf58f35e94c77c4cb9424fafd6c39d18c5f 100644 (file)
@@ -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
index c86652a1f10bb7437026e47e705b05c9bab27b62..459098486fe14a11dead803ef33a2a4f50973cda 100644 (file)
@@ -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));
        }