Reset color if start node, if necessary
This commit is contained in:
parent
89d6249dcb
commit
7e44d0fb3f
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue