mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-11 10:38:32 +00:00
sprite frame count fix
This commit is contained in:
@@ -300,7 +300,8 @@ public class DefineSpriteTag extends CharacterTag implements DrawableTag, Timeli
|
||||
|
||||
@Override
|
||||
public int getNumFrames() {
|
||||
return frameCount;
|
||||
// flashplayer ignores the count stored in frameCount
|
||||
return getTimeline().getFrames().size(); // frameCount
|
||||
}
|
||||
|
||||
private int getRealFrameCount() {
|
||||
|
||||
@@ -487,13 +487,17 @@ public class View {
|
||||
List<List<String>> expandedNodes = new ArrayList<>();
|
||||
int rowCount = tree.getRowCount();
|
||||
for (int i = 0; i < rowCount; i++) {
|
||||
TreePath path = tree.getPathForRow(i);
|
||||
if (tree.isExpanded(path)) {
|
||||
List<String> pathAsStringList = new ArrayList<>();
|
||||
for (Object pathCompnent : path.getPath()) {
|
||||
pathAsStringList.add(pathCompnent.toString());
|
||||
try {
|
||||
TreePath path = tree.getPathForRow(i);
|
||||
if (tree.isExpanded(path)) {
|
||||
List<String> pathAsStringList = new ArrayList<>();
|
||||
for (Object pathCompnent : path.getPath()) {
|
||||
pathAsStringList.add(pathCompnent.toString());
|
||||
}
|
||||
expandedNodes.add(pathAsStringList);
|
||||
}
|
||||
expandedNodes.add(pathAsStringList);
|
||||
} catch (IndexOutOfBoundsException ex) {
|
||||
// TreeNode was removed, ignore
|
||||
}
|
||||
}
|
||||
return expandedNodes;
|
||||
|
||||
Reference in New Issue
Block a user