 
   drawChainWithChainIndicatorFromTo : (top, middle, tree, decision) ->
 
-    hasActiveNode = @chainContainsActiveNode(tree, decision.node)
-
     # Draw root, chain indicator and decision point
     @addNode(middle, top, tree.id)
     @drawEdge(middle, top, middle, top + 0.5 * @nodeDistance)
-    @drawChainIndicator(middle, top + 0.5 * @nodeDistance, top + 1.5 * @nodeDistance, hasActiveNode)
+    @drawChainIndicator(middle, top + 0.5 * @nodeDistance, top + 1.5 * @nodeDistance, decision.hasActiveNode)
     @drawEdge(middle, top + 1.5 * @nodeDistance, middle, top + 2 * @nodeDistance)
     @addNode(middle, top + 2 * @nodeDistance, decision.node.id)
 

    # Decision points will definitely be drawn.

    chainCount = 0

    # skip comment check on first node
    if tree.children.length == 1

      chainCount,
      isBranch: tree.children.length > 1
      isLeaf: tree.children.length == 0
      hasActiveNode: hasActiveNode
    }


  recordWidths : (tree) ->
