summaryrefslogtreecommitdiff
path: root/editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-03-11 09:08:44 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-03-11 09:08:44 +0000
commitbeb1c620c5f73aa0121b1b3ceae8b595e552944c (patch)
tree7539d52293561137c11d431fe17f3b2733af3520 /editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c
parentFix one #ifdef and add two more checks (diff)
Fix number calculation. Patch from Tim Tretyak <timothy@umc.com.ua>
Notes
Notes: svn path=/head/; revision=55846
Diffstat (limited to 'editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c')
-rw-r--r--editors/openoffice-1.1/files/patch-sal::rtl::source::strtmpl.c19
1 files changed, 19 insertions, 0 deletions
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') )