DeskCalc: Style fix, add space around binary op

This commit is contained in:
John Scipione 2013-06-26 18:56:53 -04:00
parent 31650fd465
commit 51f758db3f

View File

@ -286,8 +286,8 @@ ExpressionTextView::SetValue(BString value)
}
if (digit == 10) {
// carry over, shift the result
if (value[firstDigit+1] == '.') {
value[firstDigit+1] = '0';
if (value[firstDigit + 1] == '.') {
value[firstDigit + 1] = '0';
value[firstDigit] = '.';
}
value.Insert('1', 1, firstDigit);