From a69584411eed2e12e1ec4840a0be3bd2eaa3b937 Mon Sep 17 00:00:00 2001 From: Bane Stojkovic Date: Fri, 9 May 2025 19:53:28 +0200 Subject: [PATCH] Fixed the issue with embedding image files into DIY projects --- diylc/diylc-core/src/main/resources/update.xml | 8 ++++++++ .../src/main/java/org/diylc/components/misc/Image.java | 1 + 2 files changed, 9 insertions(+) diff --git a/diylc/diylc-core/src/main/resources/update.xml b/diylc/diylc-core/src/main/resources/update.xml index e71a5115..000feb63 100644 --- a/diylc/diylc-core/src/main/resources/update.xml +++ b/diylc/diylc-core/src/main/resources/update.xml @@ -305,6 +305,10 @@ 2025-04-21 00:00:00.000 CET + + NEW_FEATURE + 'AI Analyzer' feature added + IMPROVEMENT Significantly improve rendering performance of most components @@ -317,6 +321,10 @@ BUG_FIX 'Pilot Lamp Holder' component can sometimes hang the application + + BUG_FIX + Fixed the issue with embedding image files into DIY projects + BUG_FIX Fixed the issue with some components (e.g. DIP IC) jumping when showing underside of a board diff --git a/diylc/diylc-library/src/main/java/org/diylc/components/misc/Image.java b/diylc/diylc-library/src/main/java/org/diylc/components/misc/Image.java index 2527a4cc..735c417e 100644 --- a/diylc/diylc-library/src/main/java/org/diylc/components/misc/Image.java +++ b/diylc/diylc-library/src/main/java/org/diylc/components/misc/Image.java @@ -234,6 +234,7 @@ public class Image extends AbstractTransparentComponent { public void setData(byte[] data) { this.data = data; + this.imageIcon = null; this.image = null; if (getSizingMode() == ImageSizingMode.TwoPoints) { ImageIcon imageIcon = getImage();