Mark last segment as visited when done.

This commit is contained in:
Jürg Lehni 2015-09-23 14:31:12 -04:00
parent cf5bf38c3b
commit c79166a46f

View file

@ -639,6 +639,7 @@ PathItem.inject(new function() {
if (added && (seg === start || seg === otherStart)) {
// We've come back to the start, bail out as we're done.
drawSegment(seg, null, 'done', i, 'red');
seg._visited = true;
break;
} else if (seg._visited && (!other || other._visited)) {
// TODO: Do we still need to check other too?