Fixed: Simple editor - adding a library item to the last frame adds a frame

This commit is contained in:
Jindra Petřík
2025-05-09 16:49:15 +02:00
parent 341bab395e
commit 046639937c
2 changed files with 6 additions and 3 deletions
@@ -290,9 +290,11 @@ public class EasySwfPanel extends JPanel {
} else {
timelined.addTag(timelined.indexOfTag(showFrameTag), place);
RemoveObject2Tag remove = new RemoveObject2Tag(timelined.getSwf());
remove.depth = newDepth;
timelined.addTag(timelined.indexOfTag(showFrameTag) + 1, remove);
if (fframe < timelined.getFrameCount() - 1) {
RemoveObject2Tag remove = new RemoveObject2Tag(timelined.getSwf());
remove.depth = newDepth;
timelined.addTag(timelined.indexOfTag(showFrameTag) + 1, remove);
}
}
DefineBeforeUsageFixer fixer = new DefineBeforeUsageFixer();