mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 17:08:11 +00:00
fix error in adding nodes
states were added twice in some cases
This commit is contained in:
parent
9502b28f08
commit
ab1cf7e197
|
@ -106,7 +106,7 @@ $(document).ready(function() {
|
||||||
echo "ggg.addNode(\"S".$state->getID()."\", { label : \"".str_replace('"', "\\\"", $state->getName()." ".$initstate)."\" });\n";
|
echo "ggg.addNode(\"S".$state->getID()."\", { label : \"".str_replace('"', "\\\"", $state->getName()." ".$initstate)."\" });\n";
|
||||||
}
|
}
|
||||||
if(!isset($this->states[$nextstate->getID()])) {
|
if(!isset($this->states[$nextstate->getID()])) {
|
||||||
$this->states[$state->getID()] = $nextstate;
|
$this->states[$nextstate->getID()] = $nextstate;
|
||||||
echo "ggg.addNode(\"S".$nextstate->getID()."\", { label : \"".str_replace('"', "\\\"", $nextstate->getName())."\" });\n";
|
echo "ggg.addNode(\"S".$nextstate->getID()."\", { label : \"".str_replace('"', "\\\"", $nextstate->getName())."\" });\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user