From d4c57d1e6a235a8944d7cd995286cf2485d99e3a Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Tue, 27 Nov 2001 12:09:01 +0000 Subject: #95195# fixed problem with multiply properties per item on SetPropertyValues call --- svx/source/unodraw/unoshape.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svx') diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index af8cfd8ce60f..593398c842a2 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoshape.cxx,v $ * - * $Revision: 1.78 $ + * $Revision: 1.79 $ * - * last change: $Author: cl $ $Date: 2001-11-19 15:02:42 $ + * last change: $Author: cl $ $Date: 2001-11-27 13:09:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1642,7 +1642,8 @@ void SAL_CALL SvxShape::setPropertyValue( const OUString& rPropertyName, const u pSet = new SfxItemSet( pModel->GetItemPool(), pMap->nWID, pMap->nWID); } - pSet->Put(pObj->GetItem(pMap->nWID)); + if( pSet->GetItemState( pMap->nWID ) != SFX_ITEM_SET ) + pSet->Put(pObj->GetItem(pMap->nWID)); if( !SvxUnoTextRangeBase::SetPropertyValueHelper( *pSet, pMap, rVal, *pSet )) { -- cgit