From 403dccbf2345689349df3c406be82c3e0021b2dc Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 8 Jan 2010 18:49:32 +0000 Subject: [PATCH] No output for nocite citations. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32897 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCitation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index c58ce39795..d88c8761d8 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -507,6 +507,10 @@ int InsetCitation::docbook(odocstream & os, OutputParams const &) const docstring InsetCitation::xhtml(XHTMLStream & xs, OutputParams const &) const { + string const & cmd = getCmdName(); + if (cmd == "nocite") + return docstring(); + BiblioInfo const & bi = buffer().masterBibInfo(); docstring const & key_list = getParam("key"); if (key_list.empty())