From 48859b6c75d7bc68112a7e9b84ad1173405688bf Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Wed, 4 Dec 2002 09:08:52 +0000 Subject: [PATCH] #105888# paste drawing format: count group as one object --- sc/source/ui/view/viewfun5.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx index 7628f0e361dd..bceef3459e18 100644 --- a/sc/source/ui/view/viewfun5.cxx +++ b/sc/source/ui/view/viewfun5.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewfun5.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: dr $ $Date: 2002-11-04 15:57:14 $ + * last change: $Author: nn $ $Date: 2002-12-04 10:08:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -417,13 +417,14 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, SdrObject* pObject = aIter.Next(); while (pObject) { - ++nObjCount; if ( pObject->ISA(SdrUnoObj) ) pObject->NbcSetLayer(SC_LAYER_CONTROLS); else pObject->NbcSetLayer(SC_LAYER_FRONT); pObject = aIter.Next(); } + + nObjCount += pPage->GetObjCount(); // #105888# count group object only once } PasteDraw( aPos, pModel, (nObjCount > 1) ); // grouped if more than 1 object