Refreshing shape/frame cache after image replace

formatting
This commit is contained in:
Jindra Petk
2013-07-07 08:39:25 +02:00
parent 77628bf739
commit 3b0754021e
12 changed files with 30 additions and 20 deletions

View File

@@ -1664,6 +1664,7 @@ public class MainFrame extends AppFrame implements ActionListener, TreeSelection
byte data[] = Helper.readFile(selfile.getAbsolutePath());
try {
it.setImage(data);
swf.clearImageCache();
} catch (IOException ex) {
Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, "Invalid image", ex);
JOptionPane.showMessageDialog(null, translate("error.image.invalid"), translate("error"), JOptionPane.ERROR_MESSAGE);