Fixed Go to document class when switched to tag list view

This commit is contained in:
Jindra Petřík
2022-11-10 19:01:59 +01:00
parent 95e8ba0861
commit c43e68dc29
2 changed files with 6 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
- Exception when bundle selected
- File path in window title for SWFs inside DefineBinaryData
- [#1863] Export to PDF - cannot read fonts with long CMAP
- Go to document class when switched to tag list view
## [16.2.0] - 2022-11-08
### Added

View File

@@ -1322,7 +1322,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
public void hilightScript(SWF swf, String name) {
View.checkAccess();
TagTreeModel ttm = (TagTreeModel) mainPanel.getCurrentTree().getModel();
TagTreeModel ttm = (TagTreeModel) mainPanel.tagTree.getModel();
TreeItem scriptsNode = ttm.getScriptsNode(swf);
if (scriptsNode instanceof ClassesListTreeModel) {
ClassesListTreeModel clModel = (ClassesListTreeModel) scriptsNode;
@@ -1342,8 +1342,11 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
}
if (pack != null) {
if (mainPanel.getCurrentView() != MainPanel.VIEW_RESOURCES) {
mainPanel.showView(MainPanel.VIEW_RESOURCES);
}
hilightScript(pack);
}
}
}
}