From fb69ba2a8a85099b2dbf5efa3dea67f3f73dbd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Thu, 2 May 2013 19:26:38 +0200 Subject: [PATCH] AS3 - fixed not refreshing class list after rename identifiers --- .../decompiler/flash/abc/gui/DecompiledEditorPane.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/abc/gui/DecompiledEditorPane.java b/trunk/src/com/jpexs/decompiler/flash/abc/gui/DecompiledEditorPane.java index fd4e508c7..acd190ba1 100644 --- a/trunk/src/com/jpexs/decompiler/flash/abc/gui/DecompiledEditorPane.java +++ b/trunk/src/com/jpexs/decompiler/flash/abc/gui/DecompiledEditorPane.java @@ -38,7 +38,7 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL private List classHighlights = new ArrayList(); private Highlighting currentMethodHighlight; private ABC abc; - private int scriptIndex; + private int scriptIndex=-1; public int lastTraitIndex = 0; private boolean ignoreCarret = false; private boolean reset = false; @@ -315,7 +315,9 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL if (bufferedClasses.containsKey(scriptIndex)) { bufferedClasses.remove(scriptIndex); } - setScript(scriptIndex, abc, abcList); + if((scriptIndex!=-1)&&(abc!=null)){ + setScript(scriptIndex, abc, abcList); + } setNoTrait(); setClassIndex(ci); }