layers which has filters (outside of the bounding box) are cropped: fixed

This commit is contained in:
Honfika
2014-02-24 22:10:43 +01:00
parent 83360a19df
commit 3ddb7b0d6e
5 changed files with 22 additions and 26 deletions
@@ -143,9 +143,6 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
}
SWF.putToCache(key, img);
}
if (img != null && img.bounds != null && mat != null) {
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
}
if (img != null) {
setImage(img);
}
@@ -217,7 +214,6 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
}
SWF.putToCache(key, img);
}
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
ImageIcon icon = new ImageIcon(img.getBufferedImage());
label.setIcon(icon);
frame = nframe;