From bb2128dfc047b60f8b6f6ac301b404cd3b8ce5ea Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 13 Apr 2014 05:50:44 +0000 Subject: [PATCH] Core: Format: fixed corner-case git-svn-id: svn://ultimatepp.org/upp/trunk@7238 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Format.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/Core/Format.cpp b/uppsrc/Core/Format.cpp index 723145e6f..f03a5d322 100644 --- a/uppsrc/Core/Format.cpp +++ b/uppsrc/Core/Format.cpp @@ -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); }