mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
Core: Convert Pattern issue fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@7841 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
17e9de4546
commit
1ecb42fa40
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue