Browse Source

small switch properties change

Kevin Trometer 8 years ago
parent
commit
327a934a2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ui/view/GUI.java

+ 1 - 1
src/ui/view/GUI.java

@@ -746,7 +746,7 @@ public class GUI<E> implements CategoryListener {
 						tableModelProperties.addRow(tempRatioPerc);
 					} else if (temp instanceof HolonSwitch) {
 						deleteRows();
-						Object[] tempActive = { "Active", ((HolonSwitch) temp).getState() };
+						Object[] tempActive = { "Active", ((HolonSwitch) temp).getActiveAt()[model.getCurIteration()]};
 						tableModelProperties.addRow(tempActive);
 						unitGraph.repaintWithNewSwitch((HolonSwitch) temp);
 						elementGraph.setText(temp.getName());