Skip to content

Commit

Permalink
Change limit for error
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Castan <[email protected]>
  • Loading branch information
Fabien Servant and fabiencastan authored Sep 7, 2020
1 parent da5e5f5 commit 7cfffcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/software/pipeline/main_panoramaWarping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7cfffcb

Please sign in to comment.