summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/layerimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/layerimp.cxx')
-rw-r--r--xmloff/source/draw/layerimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/layerimp.cxx b/xmloff/source/draw/layerimp.cxx
index 13071e600246..abad8cf7a938 100644
--- a/xmloff/source/draw/layerimp.cxx
+++ b/xmloff/source/draw/layerimp.cxx
@@ -125,7 +125,7 @@ void SdXMLLayerContext::EndElement()
{
Reference< XLayerManager > xLayerManager( mxLayerManager, UNO_QUERY );
if( xLayerManager.is() )
- xLayer.set( xLayerManager->insertNewByIndex( xLayerManager->getCount() ), UNO_QUERY );
+ xLayer = xLayerManager->insertNewByIndex( xLayerManager->getCount() );
SAL_WARN_IF( !xLayer.is(), "xmloff", "xmloff::SdXMLLayerContext::EndElement(), failed to create new XLayer!" );
if( xLayer.is() )