[svn:p5ee] r8034 - p5ee/trunk/App-Widget/lib/App

[email protected]
Newsgroups perl.cvs.p5ee
Message-ID <[email protected]>
Author: spadkins
Date: Thu Nov  9 10:23:17 2006
New Revision: 8034

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

Log:
fix bug in format() regarding {scale_factor}

Modified: p5ee/trunk/App-Widget/lib/App/Widget.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/Widget.pm	Thu Nov  9 10:23:17 2006
@@ -524,7 +524,7 @@
         $formatted_value *= $format_options->{scale_factor};
     }
     if ($format_options->{format}) {
-        $formatted_value = sprintf($format_options->{format}, $value);
+        $formatted_value = sprintf($format_options->{format}, $formatted_value);
     }
     elsif ($format_options->{date_format}) {
         if (defined $format_options->{date_suffix}) {
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.