- Implemented copying of custom expressions to other simulations in expression builde...
[debian/openrocket] / core / src / net / sf / openrocket / gui / main / SimulationPanel.java
index 719e1cf6a6a3cd3d00cd4e1c7eae45ae19566067..09751730af5b6ef8a37bbf7d5ad7b60ee78102a4 100644 (file)
@@ -82,7 +82,7 @@ public class SimulationPanel extends JPanel {
                button.addActionListener(new ActionListener() {
                        @Override
                        public void actionPerformed(ActionEvent e) {
-                               Simulation sim = new Simulation(document.getRocket());
+                               Simulation sim = new Simulation(document, document.getRocket());
                                sim.setName(document.getNextSimulationName());
                                
                                int n = document.getSimulationCount();