Fix layout.
[sonitus.git] / 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;
                }