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 {
@@ -330,6 +330,10 @@
<changeType>IMPROVEMENT</changeType>
<description>Increased PNG export resolution</description>
</com.diyfever.gui.update.Change>
<com.diyfever.gui.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Allow zero ohm resistors</description>
</com.diyfever.gui.update.Change>
<com.diyfever.gui.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Outline mode that resembles PCB silkscreen</description>