From 14269495b316f3770df626e4a17d0baa457e9ec2 Mon Sep 17 00:00:00 2001 From: Rudy Huyn Date: Wed, 6 Mar 2019 23:25:41 -0800 Subject: [PATCH] Remove the decimal separator verification --- src/CalcViewModel/Common/CopyPasteManager.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/CalcViewModel/Common/CopyPasteManager.cpp b/src/CalcViewModel/Common/CopyPasteManager.cpp index f910195b..886c5c77 100644 --- a/src/CalcViewModel/Common/CopyPasteManager.cpp +++ b/src/CalcViewModel/Common/CopyPasteManager.cpp @@ -157,13 +157,6 @@ bool CopyPasteManager::ValidatePasteExpression(String^ pastedText, ViewMode mode wstring pasteExpression = pastedText->Data(); - // Verify if string contains the en-US digit separator if the local digit separator is a different one. - wchar_t localDigitSeparator = LocalizationSettings::GetInstance().GetDecimalSeparator(); - if (localDigitSeparator != '.' && pasteExpression.find('.') != std::string::npos) - { - return false; - } - // Get english translated expression String^ englishString = LocalizationSettings::GetInstance().GetEnglishValueFromLocalizedDigits(pasteExpression);