diff options
Diffstat (limited to 'xmloff/source/draw/layerimp.cxx')
-rw-r--r-- | xmloff/source/draw/layerimp.cxx | 2 |
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() ) |