ooo-build r14248 - in trunk: . patches/dev300
- From: kyoshida svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r14248 - in trunk: . patches/dev300
- Date: Wed, 8 Oct 2008 14:50:37 +0000 (UTC)
Author: kyoshida
Date: Wed Oct 8 14:50:37 2008
New Revision: 14248
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14248&view=rev
Log:
2008-10-08 Kohei Yoshida <kyoshida novell com>
* patches/dev300/calc-formula-datevalue-strip-time.diff: updated to
correct TIMEVALUE function as well.
Modified:
trunk/ChangeLog
trunk/patches/dev300/calc-formula-datevalue-strip-time.diff
Modified: trunk/patches/dev300/calc-formula-datevalue-strip-time.diff
==============================================================================
--- trunk/patches/dev300/calc-formula-datevalue-strip-time.diff (original)
+++ trunk/patches/dev300/calc-formula-datevalue-strip-time.diff Wed Oct 8 14:50:37 2008
@@ -1,5 +1,5 @@
diff --git sc/source/core/tool/interpr2.cxx sc/source/core/tool/interpr2.cxx
-index 3dc3096..c9c00ef 100644
+index 3dc3096..17ee3a4 100644
--- sc/source/core/tool/interpr2.cxx
+++ sc/source/core/tool/interpr2.cxx
@@ -171,7 +171,7 @@ void ScInterpreter::ScGetDateValue()
@@ -11,3 +11,16 @@
else
PushIllegalArgument();
}
+@@ -390,7 +390,11 @@ void ScInterpreter::ScGetTimeValue()
+ {
+ short eType = pFormatter->GetType(nFIndex);
+ if (eType == NUMBERFORMAT_TIME || eType == NUMBERFORMAT_DATETIME)
+- PushDouble(fVal);
++ {
++ double fDateVal = rtl::math::approxFloor(fVal);
++ double fTimeVal = fVal - fDateVal;
++ PushDouble(fTimeVal);
++ }
+ else
+ PushIllegalArgument();
+ }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]