Root swf was not displayed when it was opened before any other tag

This commit is contained in:
Honfika
2013-11-24 21:59:13 +01:00
parent db4ca5c266
commit 7753c39d88

View File

@@ -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();
}