mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 09:08:17 +00:00
undo fix for newly created tags
This commit is contained in:
@@ -420,6 +420,9 @@ public abstract class Tag implements NeedsCharacters, Exportable, Serializable {
|
||||
|
||||
public void undo() throws InterruptedException, IOException {
|
||||
byte[] data = getOriginalData();
|
||||
if (data == null) { //If the tag is newly created in GUI it has no original data
|
||||
return;
|
||||
}
|
||||
SWFInputStream tagDataStream = new SWFInputStream(swf, data, getDataPos(), data.length);
|
||||
readData(tagDataStream, getOriginalRange(), 0, false, true, false);
|
||||
setModified(false);
|
||||
|
||||
Reference in New Issue
Block a user