Prevent the application to crash when the current page is Date Calculation and users paste a text (#391)

Fix the else condition in ApplicationViewModel::OnPaste

How changes were validated:
Manually

Fixes #389
This commit is contained in:
Rudy Huyn 2019-04-15 09:51:06 -07:00 committed by Howard Wolosky
parent 109326508f
commit 5a6c6f4274

View File

@ -189,7 +189,7 @@ void ApplicationViewModel::OnPasteCommand(Object^ parameter)
{
ConverterViewModel->OnPasteCommand(parameter);
}
else
else if (NavCategory::IsCalculatorViewMode(m_mode))
{
CalculatorViewModel->OnPasteCommand(parameter);
}