fixed ActionScript 1/2 default script/pcode split position - script was invisible on initial settings

This commit is contained in:
Jindra Pet��k
2013-08-25 10:20:26 +02:00
parent 57e430bda4
commit 652513ce46
2 changed files with 8 additions and 4 deletions
@@ -535,7 +535,11 @@ public class ActionPanel extends JPanel implements ActionListener {
}
public void initSplits() {
splitPane.setDividerLocation((Integer) Configuration.getConfig("gui.action.splitPane.dividerLocation", getWidth() / 2));
int split = (Integer) Configuration.getConfig("gui.action.splitPane.dividerLocation", getWidth() / 2);
if (split == 0) {
split = getWidth() / 2;
}
splitPane.setDividerLocation(split);
}
public void display() {