ooo-build r11990 - in trunk: . patches/src680



Author: kyoshida
Date: Mon Mar 24 22:19:43 2008
New Revision: 11990
URL: http://svn.gnome.org/viewvc/ooo-build?rev=11990&view=rev

Log:
2008-03-24  Kohei Yoshida  <kyoshida novell com>

	* patches/src680/sc-formula-int-precision.diff: reduce the precision to
	15 significant digits before flooring the value, instead of flooring 
	the original value (n#310706, i#86775).
	
	* patches/src680/apply: apply the new patch.


Added:
   trunk/patches/src680/sc-formula-int-precision.diff
Modified:
   trunk/ChangeLog
   trunk/patches/src680/apply

Modified: trunk/patches/src680/apply
==============================================================================
--- trunk/patches/src680/apply	(original)
+++ trunk/patches/src680/apply	Mon Mar 24 22:19:43 2008
@@ -728,6 +728,10 @@
 # button.
 sc-cellformat-icon-toggle.diff, n#358548, i#86377, kohei
 
+# reduce precision to 15 significant digits for INT function before floor'ing
+# the value.
+sc-formula-int-precision.diff, n#310706, i#86775, kohei
+
 [ LinuxOnly ]
 # accelerate linking, by extreme cunning i#63927
 speed-local-link-except.diff, i#63927, michael

Added: trunk/patches/src680/sc-formula-int-precision.diff
==============================================================================
--- (empty file)
+++ trunk/patches/src680/sc-formula-int-precision.diff	Mon Mar 24 22:19:43 2008
@@ -0,0 +1,14 @@
+diff -urp --exclude=CVS --exclude=unxlngi6.pro --exclude=sc.vpj sc.clean/source/core/tool/interpr2.cxx sc/source/core/tool/interpr2.cxx
+--- sc.clean/source/core/tool/interpr2.cxx	2008-03-24 10:05:56.000000000 -0400
++++ sc/source/core/tool/interpr2.cxx	2008-03-24 17:54:40.000000000 -0400
+@@ -419,7 +419,9 @@ void ScInterpreter::ScAbs()
+ 
+ void ScInterpreter::ScInt()
+ {
+-	PushDouble(::rtl::math::approxFloor(GetDouble()));
++    double fVal = GetDouble();
++    fVal = ::rtl::math::round(fVal, 15);
++    PushDouble(::rtl::math::approxFloor(fVal));
+ }
+ 
+ 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]