fixes formatter doing one division too much, fixes #4427

This commit is contained in:
Kai Mindermann
2014-07-24 13:18:18 +02:00
committed by Alexander Makarov
parent f3520187d6
commit 46b553f012
3 changed files with 6 additions and 1 deletions

View File

@@ -461,7 +461,7 @@ class Formatter extends Component
$value = $value / $this->sizeFormat['base'];
$position++;
} while ($position < 6);
} while ($position < 5);
$value = round($value, $this->sizeFormat['decimals']);
$formattedValue = isset($this->sizeFormat['decimalSeparator']) ? str_replace('.', $this->sizeFormat['decimalSeparator'], $value) : $value;