summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/doclay.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 4ec0f8922da2..d37c5dc59d3c 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -137,19 +137,6 @@ rtl::Reference<SdrObject> SwDoc::CloneSdrObj( const SdrObject& rObj, bool bMoveW
else if( bInsInPage )
pPg->InsertObjectThenMakeNameUnique( pObj.get() );
- // For drawing objects: set layer of cloned object to invisible layer
- SdrLayerID nLayerIdForClone = rObj.GetLayer();
- if ( dynamic_cast<const SwFlyDrawObj*>( pObj.get() ) == nullptr &&
- dynamic_cast<const SwVirtFlyDrawObj*>( pObj.get() ) == nullptr &&
- !isType<SdrObject>(pObj.get()) )
- {
- if ( getIDocumentDrawModelAccess().IsVisibleLayerId( nLayerIdForClone ) )
- {
- nLayerIdForClone = getIDocumentDrawModelAccess().GetInvisibleLayerIdByVisibleOne( nLayerIdForClone );
- }
- }
- pObj->SetLayer( nLayerIdForClone );
-
return pObj;
}