summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-05 19:58:02 -0500
committerPetr Mladek <pmladek@suse.cz>2012-11-07 11:07:21 +0100
commit37c4627c73e5684b845725734cfda4ad56f4c9c6 (patch)
treec732f5566b24c2b0731d155be66d8ed27365d9d6
parenta68d26c0b626ce78bc2f5ed4da3c0dba462bed31 (diff)
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@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/tool/editutil.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx
index dad6a7a3af52..618333c1db60 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: