From 7cfffcbdb2eceb2d25ac80ebed2a51e29c08ed2a Mon Sep 17 00:00:00 2001 From: Fabien Servant <55734626+servantf@users.noreply.github.com> Date: Mon, 7 Sep 2020 07:47:09 +0200 Subject: [PATCH] Change limit for error Co-authored-by: Fabien Castan --- src/software/pipeline/main_panoramaWarping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/software/pipeline/main_panoramaWarping.cpp b/src/software/pipeline/main_panoramaWarping.cpp index 9cc30c9f3b..acc1399087 100644 --- a/src/software/pipeline/main_panoramaWarping.cpp +++ b/src/software/pipeline/main_panoramaWarping.cpp @@ -325,7 +325,7 @@ class CoordinatesMap { } } - if (scales.size() <= 1) return false; + if (scales.empty()) return false; std::sort(scales.begin(), scales.end()); int selected_index = int(floor(float(scales.size() - 1) * ratioUpscale));