diff options
author | Christian Lippka <cl@openoffice.org> | 2010-06-03 15:20:47 +0200 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2010-06-03 15:20:47 +0200 |
commit | 1ad6bfaa61736ffd37b67c35506a7e68f0c63396 (patch) | |
tree | eb7f0b0a0f0e2cbdc36ad8b0d10554b41feb945c /xmloff/source/draw | |
parent | f8e7afbac976ca862a801b9648fd95b2107757b2 (diff) |
#i58213# get date styles from automatic styles in impress
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r-- | xmloff/source/draw/ximppage.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx index becfd05b1963..6c715b5ad77a 100644 --- a/xmloff/source/draw/ximppage.cxx +++ b/xmloff/source/draw/ximppage.cxx @@ -339,6 +339,9 @@ void SdXMLGenericPageContext::EndElement() else if( aDateTimeFormat.getLength() ) { const SdXMLStylesContext* pStyles = dynamic_cast< const SdXMLStylesContext* >( GetSdImport().GetShapeImport()->GetStylesContext() ); + if( !pStyles ) + pStyles = dynamic_cast< const SdXMLStylesContext* >( GetSdImport().GetShapeImport()->GetAutoStylesContext() ); + if( pStyles ) { const SdXMLNumberFormatImportContext* pSdNumStyle = |