mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
26006c8ffc
commit
a2de033405
@ -927,7 +927,9 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const
|
|||||||
if (citekeys.empty())
|
if (citekeys.empty())
|
||||||
return docstring();
|
return docstring();
|
||||||
sort(citekeys.begin(), citekeys.end());
|
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 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
|
// We will now convert it to a list of the BibTeXInfo objects used in
|
||||||
// this document...
|
// this document...
|
||||||
|
Loading…
Reference in New Issue
Block a user