|
@@ -310,9 +310,8 @@ public class GUI implements CategoryListener {
|
|
|
&& tempCpsObject.getID() != 0) {
|
|
|
addElementPopUp = new AddElementPopUp();
|
|
|
addElementPopUp.setVisible(true);
|
|
|
- controller.addElementCanvasObject(tempCpsObject.getName(),
|
|
|
- addElementPopUp.getElement().getEleName(), addElementPopUp.getElement().getAmount(),
|
|
|
- addElementPopUp.getElement().getEnergy());
|
|
|
+ controller.addElementCanvasObject(tempCpsObject.getID(), addElementPopUp.getElement().getEleName(),
|
|
|
+ addElementPopUp.getElement().getAmount(), addElementPopUp.getElement().getEnergy());
|
|
|
}
|
|
|
}
|
|
|
});
|