Show
Ignore:
Timestamp:
09/03/2007 02:45:06 PM (16 months ago)
Author:
tof
Message:

corrected type convertion bug.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/3.2-dev/framework/Web/UI/WebControls/TSlider.php

    r2198 r2199  
    152152        public function getValue() 
    153153        { 
    154                 return $this->getViewState('Value',0); 
     154                return $this->getViewState('Value',0.0); 
    155155        } 
    156156 
     
    160160        public function setValue($value) 
    161161        { 
    162                 $this->setViewState('Value', TPropertyValue::ensureFloat($value),0); 
     162                $this->setViewState('Value', TPropertyValue::ensureFloat($value),0.0); 
    163163        } 
    164164 
     
    300300        public function loadPostData($key,$values) 
    301301        { 
    302                 $value=$values[$this->getClientID().'_1']; 
     302                $value=(float)$values[$this->getClientID().'_1']; 
    303303                if($this->getValue()!==$value) 
    304304                {