From 729a6e7da36055a83be7753af0018beb85bfd1d2 Mon Sep 17 00:00:00 2001 From: ousnius Date: Tue, 10 Nov 2015 17:57:25 +0100 Subject: [PATCH] Fixed preview update with certain zaps --- DiffData.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DiffData.cpp b/DiffData.cpp index 5eaef62b..3f113a5f 100644 --- a/DiffData.cpp +++ b/DiffData.cpp @@ -218,8 +218,9 @@ void DiffDataSets::GetDiffIndices(const string& set, const string& target, vecto outIndices.push_back(resultIt->first); } } - std::sort(outIndices.begin(), outIndices.end()); - std::unique(outIndices.begin(), outIndices.end()); + + sort(outIndices.begin(), outIndices.end()); + outIndices.erase(unique(outIndices.begin(), outIndices.end()), outIndices.end()); } void DiffDataSets::ClearSet(const string& name) {