Browse Source

small graph text fix

Kevin Trometer 8 years ago
parent
commit
33e83db155
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/ui/view/GUI.java

+ 2 - 0
src/ui/view/GUI.java

@@ -671,6 +671,7 @@ public class GUI<E> implements CategoryListener {
 			public void mousePressed(MouseEvent e) {
 				if (temp == null || temp.getID() != model.getSelectedObjectID()) {
 					unitGraph.empty();
+					elementGraph.setText("None ");
 				}
 				temp = getActualCps();
 				// Update of the Information about the HolonElements - only for
@@ -797,6 +798,7 @@ public class GUI<E> implements CategoryListener {
 				controller.setSelecteEdge(null);
 				controller.setCurIteration(0);
 				unitGraph.empty();
+				elementGraph.setText("None ");
 				canvas.tempCps = null;
 				canvas.objectSelectionHighlighting();
 				canvas.repaint();