aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice-3
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2002-03-11 17:08:44 +0800
committermbr <mbr@FreeBSD.org>2002-03-11 17:08:44 +0800
commit6fe393320cb8214933364e8cb2e9d9d9f093a9c8 (patch)
treee33589090762abaef13071f16730b4751269658d /editors/openoffice-3
parentbc542d57401dff5cf8eb373c2ada0e72e44078d9 (diff)
downloadfreebsd-ports-gnome-6fe393320cb8214933364e8cb2e9d9d9f093a9c8.tar.gz
freebsd-ports-gnome-6fe393320cb8214933364e8cb2e9d9d9f093a9c8.tar.zst
freebsd-ports-gnome-6fe393320cb8214933364e8cb2e9d9d9f093a9c8.zip
Fix number calculation. Patch from Tim Tretyak <timothy@umc.com.ua>
Diffstat (limited to 'editors/openoffice-3')
-rw-r--r--editors/openoffice-3/files/patch-sal::rtl::source::strtmpl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/openoffice-3/files/patch-sal::rtl::source::strtmpl.c b/editors/openoffice-3/files/patch-sal::rtl::source::strtmpl.c
new file mode 100644
index 000000000000..91a5289d6636
--- /dev/null
+++ b/editors/openoffice-3/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') )