Reset color if start node, if necessary
This commit is contained in:
@ -271,7 +271,10 @@ class GruphiFrame extends JFrame {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void clearPaths() {
|
private void clearPaths() {
|
||||||
startNode = null;
|
if (startNode != null) {
|
||||||
|
startNode.color = Node.COLOR;
|
||||||
|
startNode = null;
|
||||||
|
}
|
||||||
paths = null;
|
paths = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user