From 3106b6a0ea2c42bcb295cfadf0b3665dd3fffeed Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm <philipp@uvos.xyz> Date: Mon, 14 Oct 2024 17:12:38 +0200 Subject: [PATCH] fix bug where the wrong datapoints where erased when reduing region --- normalize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize.cpp b/normalize.cpp index 64532fe..9d91104 100644 --- a/normalize.cpp +++ b/normalize.cpp @@ -135,7 +135,7 @@ std::vector<eis::DataPoint> eis::reduceRegion(const std::vector<eis::DataPoint>& eis::Log(eis::Log::DEBUG)<<"reduced range "<<start<<'-'<<end; data.erase(data.begin(), data.begin()+start); - data.erase(data.begin()+end+1, data.end()); + data.erase(data.begin()+end+1-start, data.end()); return data; } -- GitLab