Forgot that unique() doesn't actually erase anything.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-30 23:08:24 +00:00
parent 26006c8ffc
commit a2de033405

View File

@ -927,7 +927,9 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const
if (citekeys.empty())
return docstring();
sort(citekeys.begin(), citekeys.end());
unique(citekeys.begin(), citekeys.end());
vector<docstring>::iterator uit =
unique(citekeys.begin(), citekeys.end());
citekeys.erase(uit, citekeys.end());
// We now have a sorted, unique list of the keys used in this document.
// We will now convert it to a list of the BibTeXInfo objects used in
// this document...