Mark profile as invalid if high target < low target
This commit is contained in:
parent
53ba6d46d5
commit
8adc333ade
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue