Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Bio-Phylo CPAN distribution.

Report information
The Basics
Id: 22813
Status: resolved
Priority: 0/
Queue: Bio-Phylo

People
Owner: Nobody in particular
Requestors: daniel.gilder [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Division by zero Bio::Phylo::Treedrawer::SVG
Using th example code (see below), i get Illegal division by zero at /usr/lib/perl5/site_perl/5.8.7/Bio/Phylo/Treedrawer/SVG.pm line 242. Now i have changed the name of the file to SVG.pm (see a previous bug report), and the package name, which may account for this error. Perl 5.8.7 for i386Linux use Bio::Phylo::Treedrawer; use Bio::Phylo::IO; my $treedrawer = Bio::Phylo::Treedrawer->new( -width => 400, -height => 600, -shape => 'CURVY', # curvogram -mode => 'CLADO', # cladogram -format => 'SVG' ); my $tree = Bio::Phylo::IO->parse( -format => 'newick', -string => '((A,B),C);' )->first; $treedrawer->set_tree($tree); $treedrawer->set_padding(50); my $string = $treedrawer->draw;
Hi, I have fixed the bug. I added a regression test (regress_22813.t) to the upcoming v.0.16 that demonstrates the fix. A release candidate for v.0.16 will appear on CPAN this week. I now consider this issue resolved. Best wishes, Rutger