Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#14 Fixing problem while reading percentage (Bug 1226273)

open
nobody
None
5
2006-09-28
2006-09-28
Cristian
No

Bug 1226273 (Problem while reading percentage -
http://sourceforge.net/tracker/index.php?
func=detail&aid=1226273&group_id=99160&atid=623332)
can be fixed changing only one IF check.

Delete this original code:
if ($this->formatRecords['xfrecords'][$xfindex]
['type'] == 'number') {
$this->curformat = $this->formatRecords['xfrecords']
[$xfindex]['format'];
$this->rectype = 'number';
if (($xfindex == 0x9) || ($xfindex == 0xa))
$this->multiplier = 100;
}
else {
[...cut...]
}

And replace it with this:
if ($this->formatRecords['xfrecords'][$xfindex]
['type'] == 'number') {
$this->curformat = $this->formatRecords['xfrecords']
[$xfindex]['format'];
$this->rectype = 'number';
if ($xfindex == 25 || $xfindex == 26)
$this->multiplier = 100;
}
else {
[...cut...]
}

Discussion