Fix the year display in InsetCitation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29095 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-04-04 21:10:35 +00:00
parent f7164212b1
commit bd8a0686fb

View File

@ -429,10 +429,10 @@ docstring const BiblioInfo::getYear(docstring const & key) const
// let's try the crossref
docstring const xref = data.getXRef();
if (xref.empty())
return year; // no luck
return _("No year"); // no luck
BiblioInfo::const_iterator const xrefit = find(xref);
if (xrefit == end())
return year; // no luck again
return _("No year"); // no luck again
BibTeXInfo const & xref_data = xrefit->second;
return xref_data.getYear();
return data.getYear();