From 7753c39d880088943e9b4ab42f4eaf89a36254ff Mon Sep 17 00:00:00 2001 From: Honfika Date: Sun, 24 Nov 2013 21:59:13 +0100 Subject: [PATCH] Root swf was not displayed when it was opened before any other tag --- trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java b/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java index ae85e55a2..a9d612dae 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java @@ -3144,6 +3144,7 @@ public final class MainFrame extends AppRibbonFrame implements ActionListener, T break; } } + ((CardLayout) viewerCards.getLayout()).show(viewerCards, FLASH_VIEWER_CARD); if (flashPanel instanceof FlashPlayerPanel) { if (tempFile != null) { tempFile.delete(); @@ -3197,7 +3198,6 @@ public final class MainFrame extends AppRibbonFrame implements ActionListener, T } else if (((tagObj instanceof FrameNode) && ((FrameNode) tagObj).isDisplayed()) || ((tagObj instanceof CharacterTag) || (tagObj instanceof FontTag)) && (tagObj instanceof Tag)) { ((CardLayout) viewerCards.getLayout()).show(viewerCards, FLASH_VIEWER_CARD); try { - if (tempFile != null) { tempFile.delete(); }