fix: Toroidal Inductor hangs the application if it doesn't have inductance value set

This commit is contained in:
Bane Stojkovic
2024-09-20 22:10:56 +02:00
parent 8b414b8fda
commit 7e04c18b14
5 changed files with 13 additions and 1 deletions
@@ -4378,6 +4378,14 @@
<releaseDate>2023-04-27 00:00:00.000 CET</releaseDate>
<name></name>
<changes>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Buzzer component and symbol added (thanks M0JXD)</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Resistor symbol now has two draw standards - ANSI and IEC (thanks M0JXD)</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Fixed run.sh application starter for Linux and Apple OSX with M1/M2 processors when using Java 17 or newer</description>
@@ -4389,6 +4397,10 @@
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Unable to move selected components if one of them is close to being reduced to a point</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Toroidal Inductor hangs the application if it doesn't have inductance value set</description>
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
Binary file not shown.
@@ -82,7 +82,7 @@ public class ToroidalInductor extends AbstractLeadedComponent<Inductance> {
@Override
public String getValueForDisplay() {
return getValue().toString();
return getValue() == null ? "" : getValue().toString();
}
public void drawIcon(Graphics2D g2d, int width, int height) {
Binary file not shown.
Binary file not shown.