From 2db9377f8505ca293054f8d5a8cc278159f117cb Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 5 Nov 2012 19:58:02 -0500 Subject: 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 Tested-by: Markus Mohrhard --- sc/source/core/tool/editutil.cxx | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3