Fixed File did not appear modified when only header was modified

Width and Height in new File dialog instead of rect.
Unit selection.
This commit is contained in:
Jindra Petřík
2022-11-06 10:57:44 +01:00
parent 730a09f6d6
commit 40ea9175b1
7 changed files with 64 additions and 32 deletions

View File

@@ -364,6 +364,8 @@ public final class SWF implements SWFContainerItem, Timelined {
private Map<String, ASMSource> asmsCache;
private Set<Integer> cyclicCharacters = null;
private boolean headerModified = false;
private static final DecompilerPool decompilerPool = new DecompilerPool();
@@ -383,6 +385,14 @@ public final class SWF implements SWFContainerItem, Timelined {
*/
public static final Color ERROR_COLOR = Color.red;
public void setHeaderModified(boolean headerModified) {
this.headerModified = headerModified;
}
public boolean isHeaderModified() {
return headerModified;
}
public void updateCharacters() {
characters = null;
characterIdTags = null;
@@ -1132,10 +1142,14 @@ public final class SWF implements SWFContainerItem, Timelined {
}
@Override
public boolean isModified() {
public boolean isModified() {
if (isModified) {
return true;
}
if (headerModified) {
return true;
}
for (Tag tag : getTags()) {
if (tag.isModified()) {