summaryrefslogtreecommitdiffstats
path: root/xmloff
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2010-06-03 15:20:47 +0200
committerChristian Lippka <cl@openoffice.org>2010-06-03 15:20:47 +0200
commit1ad6bfaa61736ffd37b67c35506a7e68f0c63396 (patch)
treeeb7f0b0a0f0e2cbdc36ad8b0d10554b41feb945c /xmloff
parent#i111884# added new dependency (diff)
downloadcore-1ad6bfaa61736ffd37b67c35506a7e68f0c63396.tar.gz
core-1ad6bfaa61736ffd37b67c35506a7e68f0c63396.zip
#i58213# get date styles from automatic styles in impress
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximppage.cxx3
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 =