Kaydet (Commit) 58197c36 authored tarafından Miklos Vajna's avatar Miklos Vajna

bnc#820509 DOCX import: handle M.d.yyyy date format in w:sdt

Change-Id: Iae233c24a9580ffc8ea4680276161a543171f63c
üst 3d6a7cf3
......@@ -3343,8 +3343,9 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
break;
case NS_ooxml::LN_CT_SdtDate_dateFormat:
{
if (sStringValue == "M/d/yyyy")
// See com/sun/star/awt/UnoControlDateFieldModel.idl, DateFormat; sadly there are no constants for this.
// See com/sun/star/awt/UnoControlDateFieldModel.idl, DateFormat; sadly there are no constants for this.
if (sStringValue == "M/d/yyyy" || sStringValue == "M.d.yyyy")
// Approximate with MM.dd.yyy
m_pImpl->m_pSdtHelper->getDateFormat().reset(8);
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment