mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Fix invalid 0 trimming in converters
This commit is contained in:
parent
3942706639
commit
5bc5192bef
1 changed files with 1 additions and 1 deletions
|
@ -1435,7 +1435,7 @@ namespace UnitConversionManager
|
|||
/// <param name="input">string to trim</param>
|
||||
void TrimString(ref string returnString)
|
||||
{
|
||||
if (returnString.IndexOf('.') == m_returnDisplay.Length)
|
||||
if (returnString.IndexOf('.') == m_returnDisplay.npos())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue