Changeset 571 for trunk


Ignore:
Timestamp:
Jan 24, 2007, 3:53:43 AM (18 years ago)
Author:
dkearney
Message:

added -context flags to rappture units convert function calls to fix a bug noticed by steve where min and max values that did not have units produced and error while being rendered.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/gauge.tcl

    r563 r571  
    249249                    -context $units -to $units -units off]
    250250                set convMinVal [Rappture::Units::convert \
    251                     $itk_option(-minvalue) -to $nvUnits]
     251                    $itk_option(-minvalue) -context $units -to $nvUnits]
    252252            } else {
    253253                set newval [format "%g" $newval]
     
    270270                    -context $units -to $units -units off]
    271271                set convMaxVal [Rappture::Units::convert \
    272                     $itk_option(-maxvalue) -to $nvUnits]
     272                    $itk_option(-maxvalue) -context $units -to $nvUnits]
    273273            } else {
    274274                set newval [format "%g" $newval]
Note: See TracChangeset for help on using the changeset viewer.