From 1ad6bfaa61736ffd37b67c35506a7e68f0c63396 Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Thu, 3 Jun 2010 15:20:47 +0200 Subject: [PATCH] #i58213# get date styles from automatic styles in impress --- xmloff/source/draw/ximppage.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 =