Commit 6d924614 authored by Daniel Lehmberg's avatar Daniel Lehmberg
Browse files

bugfix of the last commit

parent c74b2821
Pipeline #66867 failed with stages
in 55 minutes and 37 seconds
......@@ -77,7 +77,7 @@ public class Face {
* (limits.yHigh - limits.yLow);
try {
if (result < 0 || Math.abs(result-maxArea) > 1E-15) {
if (result < 0 || (result > maxArea && Math.abs(result-maxArea) > 1E-15)) {
String message = "(Object " + id + ") Area of face is: " + result + ". This is an illegal area size " +
"because result has to be positive and less than maxArea (= " + maxArea + ")";
throw new IllegalStateException(message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment