mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Add comment for a line of code
This commit is contained in:
parent
62533fb5da
commit
b1600bee60
1 changed files with 4 additions and 2 deletions
|
@ -396,8 +396,6 @@ String ^ UnitConverterViewModel::ConvertToLocalizedString(const std::wstring& st
|
|||
// Copy back the edited string to the result
|
||||
result = ref new String(resultWithDecimal.c_str());
|
||||
}
|
||||
|
||||
currencyFormatter->FractionDigits = lastCurrencyFractionDigits;
|
||||
}
|
||||
|
||||
wstring resultHolder = wstring(result->Data());
|
||||
|
@ -409,6 +407,10 @@ String ^ UnitConverterViewModel::ConvertToLocalizedString(const std::wstring& st
|
|||
}
|
||||
result = L"-" + result;
|
||||
}
|
||||
|
||||
// restore the original fraction digits
|
||||
currencyFormatter->FractionDigits = lastCurrencyFractionDigits;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue