Fix for bug 4670, by JMarc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-03-26 16:43:29 +00:00
parent ffaab7d150
commit 5ddb79e2a0

View File

@ -508,13 +508,16 @@ void InsetCitation::textString(odocstream & os) const
// the \cite command is valid. Eg, the user has natbib enabled, inputs some
// citations and then changes his mind, turning natbib support off. The output
// should revert to \cite[]{}
int InsetCitation::latex(odocstream & os, OutputParams const &) const
int InsetCitation::latex(odocstream & os, OutputParams const & op) const
{
biblio::CiteEngine cite_engine = buffer().params().citeEngine();
// FIXME UNICODE
docstring const cite_str = from_utf8(
asValidLatexCommand(getCmdName(), cite_engine));
if (op.moving_arg)
os << "\\protect";
os << "\\" << cite_str;
docstring const & before = getParam("before");