From bc9d01a54de536bc4d31e1147006a1790fa47cdd Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Mon, 5 Feb 2007 16:34:29 +0000 Subject: [PATCH] fixed 5.01 can be type in calc it did remove the zero so the result was 5.1 See issue #2019 for more details. svn path=/trunk/; revision=25729 --- reactos/base/applications/calc/winecalc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/reactos/base/applications/calc/winecalc.c b/reactos/base/applications/calc/winecalc.c index 5f2b4d64b73..7c83e9ae349 100644 --- a/reactos/base/applications/calc/winecalc.c +++ b/reactos/base/applications/calc/winecalc.c @@ -2882,16 +2882,16 @@ void calc_buffer_format(CALC *calc) { MessageBeep(0); } - if (point) { - p = calc->buffer; - n = _tcslen(p) - 1; - while (*(p+n) && - *(p+n) != TEXT('.') && - *(p+n) == TEXT('0')) { - calc->buffer[n] = TEXT('\0'); - n--; - } - } + //if (point) { + // p = calc->buffer; + // n = _tcslen(p) - 1; + // while (*(p+n) && + // *(p+n) != TEXT('.') && + // *(p+n) == TEXT('0')) { + // calc->buffer[n] = TEXT('\0'); + // n--; + // } + //} // remove leading zeros