[Libreoffice-commits] .: Branch 'distro/suse/suse-3.6' - sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 7 02:07:43 PST 2012
sc/source/core/tool/editutil.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 37c4627c73e5684b845725734cfda4ad56f4c9c6
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Mon Nov 5 19:58:02 2012 -0500
fdo#53531: Time field can be represented with an extended time field type.
And Calc's header footer currently don't distinguish between time and
extended time. Time fields in the header / footer are always dynamic
and never static.
Change-Id: If628d179968c270a63d38cdc3bf6018c01241ac1
Reviewed-on: https://gerrit.libreoffice.org/992
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx
index dad6a7a..618333c 100644
--- a/sc/source/core/tool/editutil.cxx
+++ b/sc/source/core/tool/editutil.cxx
@@ -667,7 +667,9 @@ String ScHeaderEditEngine::CalcFieldValue( const SvxFieldItem& rField,
case text::textfield::Type::PAGES:
aRet = lcl_GetNumStr( aData.nTotalPages,aData.eNumType );
break;
+ case text::textfield::Type::EXTENDED_TIME:
case text::textfield::Type::TIME:
+ // For now, time field in the header / footer is always dynamic.
aRet = ScGlobal::pLocaleData->getTime(aData.aTime);
break;
case text::textfield::Type::DOCINFO_TITLE:
More information about the Libreoffice-commits
mailing list