mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 10:15:17 +00:00
2nd swf saving fixed
This commit is contained in:
@@ -530,7 +530,10 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
|
||||
|
||||
private void clearModified(SWF swf) {
|
||||
for (Tag tag : swf.tags) {
|
||||
tag.setModified(false);
|
||||
if (tag.isModified()) {
|
||||
tag.setOriginalData(tag.getData());
|
||||
tag.setModified(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -298,6 +298,10 @@ public class Tag implements NeedsCharacters, Exportable, ContainerItem, Serializ
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setOriginalData(byte[] data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public byte[] getDataOrOriginalData() {
|
||||
if (modified) {
|
||||
return getData();
|
||||
|
||||
Reference in New Issue
Block a user