summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2010-06-22 06:27:13 +0200
committerobo <obo@openoffice.org>2010-06-22 06:27:13 +0200
commitf257a0f24c51c291ad346b933c915f84e2d80a7e (patch)
treef188f28cd9e0da945a18c19971ccf7ec1b8fa5ac /xmloff
parentff06f2197489c750aec5f53da9d4def878d87e36 (diff)
parent0f2d1f189a95b885742a814bbee2dafb09043641 (diff)
CWS-TOOLING: integrate CWS impress191
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 =