diff --git a/src/main/java/de/oshgnacknak/gruphi/GruphiFrame.java b/src/main/java/de/oshgnacknak/gruphi/GruphiFrame.java index 6d4eb4f..611a3d6 100644 --- a/src/main/java/de/oshgnacknak/gruphi/GruphiFrame.java +++ b/src/main/java/de/oshgnacknak/gruphi/GruphiFrame.java @@ -271,7 +271,10 @@ class GruphiFrame extends JFrame { } } private void clearPaths() { - startNode = null; + if (startNode != null) { + startNode.color = Node.COLOR; + startNode = null; + } paths = null; }