summaryrefslogtreecommitdiff
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
commit7461530cb3d060df6c1a9142a2188c6e6b32defc (patch)
treebe8c40d727fe20fef8c5373d3fbbe4e73f762427 /xmloff
parent44ada130c3857b167e954b63c7a5490268b72c5b (diff)
#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 06c227bcdf..e573f03f96 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 =