summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-12-10 12:35:32 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-10 15:32:27 +0100
commit0f6f072fcf7c967a1546f65da9ff15d8a5e0e81d (patch)
tree6cc66c066ae350dad471cb2fd627ede02907bfc3
parent349bfa2a9a621e6e8041ffea847a76d7c7b114cc (diff)
fdo#70278: editeng: fix Time fields in Impress
Apparenty an uninitialized SvxTimeField is created instead of the SvxExtTimeField that is needed to preserve the value and format. (regression from ee5fc5d25fe102c30daf7d181b8181d40b85a4f3) Change-Id: I36b16af0c143e8b5451a1925806756492dc2334e (cherry picked from commit 1235e694c21f6e3e000e24a176123c386ea91df1)
-rw-r--r--editeng/source/items/flditem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index 972d8f58a653..bf8f6499b2ba 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -78,7 +78,7 @@ SvxFieldData* SvxFieldData::Create(const uno::Reference<text::XTextContent>& xTe
return pData;
}
- if (nFieldType != text::textfield::Type::TIME && nFieldType != text::textfield::Type::DATE)
+ if (nFieldType != text::textfield::Type::TIME)
{
util::DateTime aDateTime = xPropSet->getPropertyValue(UNO_TC_PROP_DATE_TIME).get<util::DateTime>();
Time aTime(aDateTime.Hours, aDateTime.Minutes, aDateTime.Seconds, aDateTime.NanoSeconds);