Mark profile as invalid if high target < low target

This commit is contained in:
TebbeUbben 2018-06-23 16:02:10 +02:00
parent 53ba6d46d5
commit 8adc333ade

View file

@ -202,6 +202,12 @@ public class Profile {
if (targetHigh_v == null)
targetHigh_v = convertToSparseArray(targetHigh);
validate(targetHigh_v);
if (targetHigh_v.size() != targetLow_v.size()) isValid = false;
else for (int i = 0; i < targetHigh_v.size(); i++)
if (targetHigh_v.get(i) < targetLow_v.get(i))
isValid = false;
isValidated = true;
}