From 48fe5f496b974209b40cc0e2ec39898c387acec7 Mon Sep 17 00:00:00 2001 From: Bane Stojkovic Date: Wed, 29 Mar 2023 09:38:27 +0200 Subject: [PATCH] Fix fuse symbol --- diylc/diylc-core/src/org/diylc/presenter/update.xml | 6 +++++- .../src/org/diylc/components/passive/FuseSymbol.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/diylc/diylc-core/src/org/diylc/presenter/update.xml b/diylc/diylc-core/src/org/diylc/presenter/update.xml index 7628475f..a27a7427 100644 --- a/diylc/diylc-core/src/org/diylc/presenter/update.xml +++ b/diylc/diylc-core/src/org/diylc/presenter/update.xml @@ -4334,9 +4334,13 @@ IMPROVEMENT When backing up the configuration file, append the current timestamp at the end instead of a '~' + + IMPROVEMENT + Improve the format of timestamp in file backups + BUG_FIX - General application slowness when Inductor component is added to the drawing + General application slowness when Inductor or Fuse Symbol components are added to the drawing BUG_FIX diff --git a/diylc/diylc-library/src/org/diylc/components/passive/FuseSymbol.java b/diylc/diylc-library/src/org/diylc/components/passive/FuseSymbol.java index 073e540f..e4f89ea3 100644 --- a/diylc/diylc-library/src/org/diylc/components/passive/FuseSymbol.java +++ b/diylc/diylc-library/src/org/diylc/components/passive/FuseSymbol.java @@ -60,7 +60,7 @@ public class FuseSymbol extends AbstractSchematicLeadedSymbol { @Override 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) {