Fixed the issue with embedding image files into DIY projects

This commit is contained in:
Bane Stojkovic
2025-05-09 19:53:28 +02:00
parent e4f7fb40d7
commit a69584411e
2 changed files with 9 additions and 0 deletions
@@ -305,6 +305,10 @@
<releaseDate>2025-04-21 00:00:00.000 CET</releaseDate> <releaseDate>2025-04-21 00:00:00.000 CET</releaseDate>
<name></name> <name></name>
<changes> <changes>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>'AI Analyzer' feature added</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType> <changeType>IMPROVEMENT</changeType>
<description>Significantly improve rendering performance of most components</description> <description>Significantly improve rendering performance of most components</description>
@@ -317,6 +321,10 @@
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
<description>'Pilot Lamp Holder' component can sometimes hang the application</description> <description>'Pilot Lamp Holder' component can sometimes hang the application</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Fixed the issue with embedding image files into DIY projects</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>Fixed the issue with some components (e.g. DIP IC) jumping when showing underside of a board</description> <description>Fixed the issue with some components (e.g. DIP IC) jumping when showing underside of a board</description>
@@ -234,6 +234,7 @@ public class Image extends AbstractTransparentComponent<Void> {
public void setData(byte[] data) { public void setData(byte[] data) {
this.data = data; this.data = data;
this.imageIcon = null;
this.image = null; this.image = null;
if (getSizingMode() == ImageSizingMode.TwoPoints) { if (getSizingMode() == ImageSizingMode.TwoPoints) {
ImageIcon imageIcon = getImage(); ImageIcon imageIcon = getImage();