mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-02 06:12:41 -06:00
Core: Format: fixed corner-case
git-svn-id: svn://ultimatepp.org/upp/trunk@7238 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0c60469503
commit
bb2128dfc0
1 changed files with 2 additions and 0 deletions
|
|
@ -720,6 +720,8 @@ String FloatFormatter(const Formatting& f)
|
|||
sprintf(ah, fmt, d);
|
||||
return String(ah, n);
|
||||
}
|
||||
if(n < 0)
|
||||
return String();
|
||||
return String(h, n);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue