[Jifty-commit] r3795 - in jifty/trunk: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Aug 5 19:07:44 EDT 2007
Author: sterling
Date: Sun Aug 5 19:07:44 2007
New Revision: 3795
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/Dispatcher.pm
Log:
r8392 at dynpc145: andrew | 2007-08-05 18:06:59 -0500
r8388 at dynpc145: andrew | 2007-08-05 17:19:52 -0500
Make sure we do not attempt to render 0 pixel values no matter what.
Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Dispatcher.pm Sun Aug 5 19:07:44 2007
@@ -42,6 +42,10 @@
($args->{width} =~ s/px$//) or ($args->{width} = 400);
($args->{height} =~ s/px$//) or ($args->{height} = 300);
+ # No zeroes! Ba Ba Blacksheep.
+ $args->{width} ||= 400;
+ $args->{height} ||= 300;
+
# Use the "type" to determine which class to use
my $class = 'Chart::' . $args->{type};
@@ -86,6 +90,10 @@
($args->{width} =~ s/px$//) or ($args->{width} = 400);
($args->{height} =~ s/px$//) or ($args->{height} = 300);
+ # No zeroes! Ba Ba Blacksheep.
+ $args->{width} ||= 400;
+ $args->{height} ||= 300;
+
# Use the "type" to determine which class to use
my $class = 'GD::Graph::' . $args->{type};
More information about the Jifty-commit
mailing list