diff --git a/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/src/com/jpexs/decompiler/flash/gui/MainPanel.java index 538c66b00..03d0ec781 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -1709,7 +1709,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se if (swf.isAS3()) { abcResult = getABCPanel().search(swf, txt, ignoreCase, regexp, this); } else { - actionResult = getActionPanel().search(txt, ignoreCase, regexp, this); + actionResult = getActionPanel().search(swf, txt, ignoreCase, regexp, this); } List fAbcResult = abcResult; diff --git a/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java b/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java index 1df22266a..549216d82 100644 --- a/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java @@ -251,10 +251,9 @@ public class ActionPanel extends JPanel implements SearchListener search(final String txt, boolean ignoreCase, boolean regexp, CancellableWorker worker) { + public List search(SWF swf, final String txt, boolean ignoreCase, boolean regexp, CancellableWorker worker) { if (txt != null && !txt.isEmpty()) { searchPanel.setOptions(ignoreCase, regexp); - SWF swf = mainPanel.getCurrentSwf(); Map asms = swf.getASMs(false); final List found = new ArrayList<>(); Pattern pat;