From 1ecb42fa401e1a802a31fcc9ee8045256d4c25fa Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 30 Oct 2014 09:45:35 +0000 Subject: [PATCH] Core: Convert Pattern issue fixed git-svn-id: svn://ultimatepp.org/upp/trunk@7841 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Convert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Convert.cpp b/uppsrc/Core/Convert.cpp index 23bba8d86..ecbc71eaf 100644 --- a/uppsrc/Core/Convert.cpp +++ b/uppsrc/Core/Convert.cpp @@ -367,7 +367,7 @@ Value ConvertDouble::Format(const Value& q) const Value ConvertDouble::Scan(const Value& txt) const { String text = txt; - if(pattern.GetCount()) { // Fix text with patterns like "%2.!n EUR" (e.g. 1.2 EUR) + if(pattern.GetCount() && pattern != "%.10g") { // Fix text with patterns like "%2.!n EUR" (e.g. 1.2 EUR) text = UPP::Filter(text, CharFilterDouble); while(ToUpper(*text.Last()) == 'E') text.Trim(text.GetCount() - 1);