broadinstitute/IGV — pull request #4 by bpow (2012-05-29 17:33:22+00:00)
Title: Division by zero in renderAlignments

renderAlignments of AlignmentTrack can throw an exception for division by zero if the depth in a region is 0. This commit checks for depth == 0 before dividing and gives a sensible alternative.