mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Fix binary display missing leading 0's (#1739)
This commit is contained in:
parent
5d95330fad
commit
c86bc30bd9
2 changed files with 8 additions and 1 deletions
|
@ -137,6 +137,13 @@ StandardCalculatorViewModel::StandardCalculatorViewModel()
|
|||
String ^ StandardCalculatorViewModel::LocalizeDisplayValue(_In_ wstring const& displayValue)
|
||||
{
|
||||
wstring result(displayValue);
|
||||
|
||||
// Adds leading padding 0's to Programmer Mode's Binary Display
|
||||
if (IsProgrammer && CurrentRadixType == NumberBase::BinBase)
|
||||
{
|
||||
result = AddPadding(result);
|
||||
}
|
||||
|
||||
LocalizationSettings::GetInstance()->LocalizeDisplayValue(&result);
|
||||
return ref new Platform::String(result.c_str());
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ using OpenQA.Selenium.Appium.Windows;
|
|||
namespace CalculatorUITestFramework
|
||||
{
|
||||
/// <summary>
|
||||
/// This class contains the UI automation objects and helper methods available when the Calculator is in Scientific Mode.
|
||||
/// This class contains the UI automation objects and helper methods available when the Calculator is in Programmer Mode.
|
||||
/// </summary>
|
||||
public class ProgrammerCalculatorPage
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue