mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Keep spaces when users copy an error message
This commit is contained in:
parent
f6a6aae6e6
commit
de97826e95
1 changed files with 11 additions and 6 deletions
|
@ -1326,13 +1326,18 @@ void StandardCalculatorViewModel::SetCalculatorType(ViewMode targetState)
|
|||
}
|
||||
}
|
||||
|
||||
Platform::String^ StandardCalculatorViewModel::GetRawDisplayValue()
|
||||
String^ StandardCalculatorViewModel::GetRawDisplayValue()
|
||||
{
|
||||
wstring rawValue;
|
||||
|
||||
LocalizationSettings::GetInstance().RemoveGroupSeparators(DisplayValue->Data(), DisplayValue->Length(), &rawValue);
|
||||
|
||||
return ref new Platform::String(rawValue.c_str());
|
||||
if (m_IsInError)
|
||||
{
|
||||
return DisplayValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
wstring rawValue;
|
||||
LocalizationSettings::GetInstance().RemoveGroupSeparators(DisplayValue->Data(), DisplayValue->Length(), &rawValue);
|
||||
return ref new String(rawValue.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
// Given a format string, returns a string with the input display value inserted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue