I. Dix 7 years ago
parent
commit
77467f18aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/ui/view/GUI.java

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

@@ -560,7 +560,7 @@ public class GUI<E> implements CategoryListener {
                                 ((JScrollPane) tabTemp.getSelectedComponent()).getViewport().getComponent(0)
                                         .getMousePosition());
                         unitGraph.update(model.getSelectedCpsObjects());
-                         ((JScrollPane) tabTemp.getSelectedComponent()).getViewport().getComponent(0).repaint();
+                        ((JScrollPane) tabTemp.getSelectedComponent()).getViewport().getComponent(0).repaint();
                     } else {
                         controller.paste(null, canvas.getMousePosition());
                         unitGraph.update(model.getSelectedCpsObjects());
@@ -1540,6 +1540,7 @@ public class GUI<E> implements CategoryListener {
                     }
                 }
                 if (temp instanceof HolonSwitch) {
+                    showScrollGraph();
                     unitGraph.repaintWithNewSwitch((HolonSwitch) temp);
                     unitGraph.fillArrayofBooleans();
                 }