From beb1c620c5f73aa0121b1b3ceae8b595e552944c Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Mon, 11 Mar 2002 09:08:44 +0000 Subject: Fix number calculation. Patch from Tim Tretyak --- .../files/patch-sal::rtl::source::strtmpl.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c (limited to 'editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c') diff --git a/editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c b/editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c new file mode 100644 index 000000000000..91a5289d6636 --- /dev/null +++ b/editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c @@ -0,0 +1,19 @@ +--- ../sal/rtl/source/strtmpl.c.orig Mon Mar 11 01:28:38 2002 ++++ ../sal/rtl/source/strtmpl.c Mon Mar 11 01:30:42 2002 +@@ -1104,10 +1104,12 @@ + } + else if ( *pStr == '+' ) + { +- if ( bExp && (nExp != 0) ) +- break; +- if ( fRet != 0.0 ) +- break; ++ if ( bExp ) { ++ if ( nExp != 0 ) ++ break; ++ } ++ else if ( fRet != 0.0 ) ++ break; + } + /* Exponent separator */ + else if ( (*pStr == 'e') || (*pStr == 'E') ) -- cgit v1.2.3