Skip Menu |

This queue is for tickets about the GD-Graph3d CPAN distribution.

Report information
The Basics
Id: 55444
Status: new
Priority: 0/
Queue: GD-Graph3d

People
Owner: Nobody in particular
Requestors: SWMCD [...] cpan.org
Cc:
AdminCc:

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



Subject: gaps in data aren't handled properly
If the data series has gaps (i.e. undef values) the 3D lines aren't drawn correctly. This patch fixes the problem. *** /usr/lib/perl5/site_perl/5.8.8/GD/Graph/lines3d.pm 2002-12-06 15:14:55.000000000 -0500 --- lines3d.pm 2010-03-10 12:33:33.000000000 -0500 *************** *** 179,185 **** # Get the coordinates of the previous point, if this is the first # point make a point object and start over (i.e. next;) ! unless( $i ) { my( $xb, $yb ); if (defined($self->{x_min_value}) && defined($self->{x_max_value})) { ($xb, $yb) = $self->val_to_pixel( $self->{_data}->get_x($i), $values[$i], $j ); --- 179,185 ---- # Get the coordinates of the previous point, if this is the first # point make a point object and start over (i.e. next;) ! unless( $i and defined $values[$i-1] ) { my( $xb, $yb ); if (defined($self->{x_min_value}) && defined($self->{x_max_value})) { ($xb, $yb) = $self->val_to_pixel( $self->{_data}->get_x($i), $values[$i], $j );