Prevent "Radial Film Capacitor" from switching to standing mode when end

points are too close
This commit is contained in:
bancika
2020-04-23 18:58:36 +02:00
parent c63b26b660
commit f408ce15b5
3 changed files with 9 additions and 5 deletions
@@ -3046,6 +3046,10 @@
<changeType>BUG_FIX</changeType>
<description>Component leads on resistors, capacitors, etc disappear when they are very short</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Prevent "Radial Film Capacitor" from switching to standing mode when end points are too close</description>
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version>
@@ -48,11 +48,6 @@ public abstract class AbstractFilmCapacitor extends AbstractLeadedComponent<Capa
protected Boolean showOuterFoil = false;
protected Color outerFoilColor = OUTER_FOIL_COLOR;
@Override
protected boolean supportsStandingMode() {
return true;
}
@EditableProperty(validatorClass = PositiveMeasureValidator.class)
public Capacitance getValue() {
return value;
@@ -61,4 +61,9 @@ public class AxialFilmCapacitor extends AbstractFilmCapacitor {
return new Rectangle2D.Double(0f, 0f, getLength().convertToPixels(),
getClosestOdd(getWidth().convertToPixels()));
}
@Override
protected boolean supportsStandingMode() {
return true;
}
}