[Jifty-commit] r3764 - in jifty/trunk:
lib/Jifty/Plugin/Chart/Renderer
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Aug 2 02:28:03 EDT 2007
Author: trs
Date: Thu Aug 2 02:28:00 2007
New Revision: 3764
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm
Log:
r25809 at zot: tom | 2007-08-02 02:25:34 -0400
Don't mess with the data structure if it's already what plotkit expects
Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm Thu Aug 2 02:28:00 2007
@@ -87,7 +87,11 @@
my @ds;
for ( my $i = 0; $i < @$dataset; $i++ ) {
# PlotKit can't deal with undefined values
- push @ds, [ $i, defined $dataset->[$i] ? $dataset->[$i] : '0' ];
+ if ( not ref $dataset->[$i] ) {
+ push @ds, [ $i, defined $dataset->[$i] ? $dataset->[$i] : '0' ];
+ } else {
+ push @ds, $dataset->[$i];
+ }
}
push @data, \@ds;
}
More information about the Jifty-commit
mailing list