summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-05 19:58:02 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-05 20:01:36 -0500
commitd84c6f8178dfebb618259f54409b4e67e7efe419 (patch)
treecae00f663741c2fb0ad827755b1d14e8b9a729ed
parent65d4e59fedc4ce6b0aa1ead3f55cecf5921a0c6f (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
-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 870d8211b011..b8918c817f69 100644
--- a/sc/source/core/tool/editutil.cxx
+++ b/sc/source/core/tool/editutil.cxx
@@ -660,7 +660,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: