Fix layout.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 May 2013 11:00:08 +0000 (13:00 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 May 2013 11:00:08 +0000 (13:00 +0200)
src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java

index f74147f..dc9a901 100644 (file)
@@ -147,7 +147,7 @@ public class PipelinePanel extends JPanel {
 
                /* if the component does not have connected sinks, exit here. */
                if (!(controlledComponent instanceof Source)) {
-                       add(new JPanel(), new GridBagConstraints(position, level + 1, width, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
+                       add(new JPanel(), new GridBagConstraints(position, 999, width, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
                        return;
                }