diff options
author | Armin Weiss <aw@openoffice.org> | 2001-05-28 09:58:47 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2001-05-28 09:58:47 +0000 |
commit | 5178dbb6d1de9eacbd35b4faff0ac0c95f74c138 (patch) | |
tree | 63e5231d38a281af9dbf8d448cb8f018ec769b64 /svx/source | |
parent | 8dd0297b5c43a1cc2d12461222b2ce6599ca9950 (diff) |
#85922# It makes no sense to set the layer asked from the group object since these is an iteration over the contained objects. In consequence, this statement erases all layer information from the draw objects. Layers need to be set at draw objects directly and have nothing to do with grouping at all.
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index 1e8803647a71..3c2cf498941d 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoshap2.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: fs $ $Date: 2001-05-15 14:09:23 $ + * last change: $Author: aw $ $Date: 2001-05-28 10:58:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -300,7 +300,14 @@ void SAL_CALL SvxShapeGroup::add( const uno::Reference< drawing::XShape >& xShap pSdrShape->GetObjList()->RemoveObject( pSdrShape->GetOrdNum() ); pObj->GetSubList()->NbcInsertObject( pSdrShape ); - pSdrShape->SetLayer(pObj->GetLayer()); + + // #85922# It makes no sense to set the layer asked + // from the group object since these is an iteration + // over the contained objects. In consequence, this + // statement erases all layer information from the draw + // objects. Layers need to be set at draw objects directly + // and have nothing to do with grouping at all. + // pSdrShape->SetLayer(pObj->GetLayer()); if(pShape) pShape->Create( pSdrShape, pPage ); |