Reset color if start node, if necessary

This commit is contained in:
Oshgnacknak 2021-09-05 21:18:33 +02:00
parent 89d6249dcb
commit 7e44d0fb3f
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

View file

@ -271,7 +271,10 @@ class GruphiFrame extends JFrame {
} }
} }
private void clearPaths() { private void clearPaths() {
if (startNode != null) {
startNode.color = Node.COLOR;
startNode = null; startNode = null;
}
paths = null; paths = null;
} }