Fix prefix 0s after deleting decimal point (#825)

This commit is contained in:
dovisutu
2020-01-03 18:21:12 +08:00
committed by Rudy Huyn
parent a21b4a2d1a
commit 9e52256196
3 changed files with 25 additions and 0 deletions

View File

@@ -231,6 +231,10 @@ void CalcInput::Backspace()
if (!m_base.IsEmpty())
{
m_base.value.pop_back();
if (m_base.value == L"0")
{
m_base.value.pop_back();
}
}
if (m_base.value.size() <= m_decPtIndex)