From a2de0334057ab1a198350ac8bf7c18f963b4dcdb Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 30 Nov 2009 23:08:24 +0000 Subject: [PATCH] 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 --- src/insets/InsetBibtex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index f80afbb0f9..c86652a1f1 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -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::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... -- 2.39.2