Fix to UOM Conversion where input UoM is the same as output UoM
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88979 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
64cc573a1e
commit
193a766ab3
|
@ -2471,7 +2471,9 @@ class PHPExcel_Calculation_Engineering {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) {
|
if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) {
|
||||||
return $value;
|
// We've already factored $fromMultiplier into the value, so we need
|
||||||
|
// to reverse it again
|
||||||
|
return $value / $fromMultiplier;
|
||||||
} elseif ($unitGroup1 == 'Temperature') {
|
} elseif ($unitGroup1 == 'Temperature') {
|
||||||
if (($fromUOM == 'F') || ($fromUOM == 'fah')) {
|
if (($fromUOM == 'F') || ($fromUOM == 'fah')) {
|
||||||
if (($toUOM == 'F') || ($toUOM == 'fah')) {
|
if (($toUOM == 'F') || ($toUOM == 'fah')) {
|
||||||
|
|
Loading…
Reference in New Issue