Author: greatlrd
Date: Mon Feb 5 19:34:29 2007
New Revision: 25729
URL:
http://svn.reactos.org/svn/reactos?rev=25729&view=rev
Log:
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.
Modified:
trunk/reactos/base/applications/calc/winecalc.c
Modified: trunk/reactos/base/applications/calc/winecalc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/calc/win…
==============================================================================
--- trunk/reactos/base/applications/calc/winecalc.c (original)
+++ trunk/reactos/base/applications/calc/winecalc.c Mon Feb 5 19:34:29 2007
@@ -2882,16 +2882,16 @@
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