allow 0 ohm resistors

This commit is contained in:
bancika
2011-08-26 17:59:50 +00:00
parent f137a398dc
commit ba694add0c
2 changed files with 5 additions and 1 deletions
@@ -10,7 +10,7 @@ public class PositiveMeasureValidator implements IPropertyValidator {
public void validate(Object value) throws ValidationException {
if (value instanceof AbstractMeasure) {
AbstractMeasure measure = (AbstractMeasure) value;
if (measure.getValue() <= 0) {
if (measure.getValue() < 0) {
throw new ValidationException("must be greater than zero.");
}
} else {