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
@@ -234,6 +234,7 @@ public class Image extends AbstractTransparentComponent<Void> {
public void setData(byte[] data) {
this.data = data;
this.imageIcon = null;
this.image = null;
if (getSizingMode() == ImageSizingMode.TwoPoints) {
ImageIcon imageIcon = getImage();