Skip to content

Commit

Permalink
fix for divide-by-zero error in segments
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Nov 17, 2010
1 parent 44054ff commit ddf303b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Bio/Graphics/Glyph/segments.pm
Expand Up @@ -818,7 +818,7 @@ sub draw_multiple_alignment {
next if $gap_left <= $panel_left || $gap_right >= $panel_right;

my $length = $delta-1;
$length = 1 if $delta <= 0; # workaround
$length = 1 if $length <= 0; # workaround
my $gap_distance = $gap_right - $gap_left;
my $pixels_per_inserted_base = $gap_distance/$length;

Expand Down

0 comments on commit ddf303b

Please sign in to comment.