Fix fuse symbol

This commit is contained in:
Bane Stojkovic
2023-03-29 09:38:27 +02:00
parent 57a7932675
commit 48fe5f496b
2 changed files with 6 additions and 2 deletions
@@ -4334,9 +4334,13 @@
<changeType>IMPROVEMENT</changeType> <changeType>IMPROVEMENT</changeType>
<description>When backing up the configuration file, append the current timestamp at the end instead of a '~'</description> <description>When backing up the configuration file, append the current timestamp at the end instead of a '~'</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Improve the format of timestamp in file backups</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
<description>General application slowness when Inductor component is added to the drawing</description> <description>General application slowness when Inductor or Fuse Symbol components are added to the drawing</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
@@ -60,7 +60,7 @@ public class FuseSymbol extends AbstractSchematicLeadedSymbol<Current> {
@Override @Override
public String getValueForDisplay() { public String getValueForDisplay() {
return getValue().toString();// + (getPowerNew() == null ? "" : " " + getPowerNew().toString()); return getValue() == null ? null : getValue().toString();// + (getPowerNew() == null ? "" : " " + getPowerNew().toString());
} }
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {