[svn:p5ee] r8032 - p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget

[email protected]
Newsgroups perl.cvs.p5ee
Message-ID <[email protected]>
Author: spadkins
Date: Thu Nov  9 09:45:30 2006
New Revision: 8032

Modified:
   p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm

Log:
support self->get_num_dims() as well as self->get_num_dims(graph_type)

Modified: p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm
==============================================================================
--- p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm	(original)
+++ p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm	Thu Nov  9 09:45:30 2006
@@ -215,6 +215,7 @@
 sub get_num_dims {
     &App::sub_entry if ($App::trace);
     my ($self, $graphtype) = @_;
+    $graphtype = $self->{graphtype} if (!$graphtype);
     my %dims = (
         bar         => 2,
         area        => 2,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.