diff options
author | Christian Lippka <cl@openoffice.org> | 2001-08-14 08:12:50 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-08-14 08:12:50 +0000 |
commit | ec655436f00e00f4005955b0d7c89ce2ddbb1722 (patch) | |
tree | 049cf26170b292563cdf278ea76a6e5791bf64c0 /svx/source/unoedit/unotext.cxx | |
parent | e7fe4a99dd73faada2bba2d66896d8c50ff67843 (diff) |
#90884# use an empty itemset on setpropertyvalue for para attribs
Diffstat (limited to 'svx/source/unoedit/unotext.cxx')
-rw-r--r-- | svx/source/unoedit/unotext.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/unoedit/unotext.cxx b/svx/source/unoedit/unotext.cxx index 28b314aa5f1e..34477abc6f57 100644 --- a/svx/source/unoedit/unotext.cxx +++ b/svx/source/unoedit/unotext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unotext.cxx,v $ * - * $Revision: 1.27 $ + * $Revision: 1.28 $ * - * last change: $Author: cl $ $Date: 2001-08-05 15:54:10 $ + * last change: $Author: cl $ $Date: 2001-08-14 09:12:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -485,9 +485,10 @@ void SAL_CALL SvxUnoTextRangeBase::_setPropertyValue( const OUString& PropertyNa do { // we have a paragraph - SfxItemSet aNewSet( pForwarder->GetParaAttribs( (USHORT)nPara ) ); + SfxItemSet aOldSet( pForwarder->GetParaAttribs( (USHORT)nPara ) ); + SfxItemSet aNewSet( *aOldSet.GetPool(), aOldSet.GetRanges() ); - setPropertyValue( pMap, aValue, aSelection, aNewSet, aNewSet ); + setPropertyValue( pMap, aValue, aSelection, aOldSet, aNewSet ); pForwarder->SetParaAttribs( (USHORT)nPara, aNewSet ); nPara++; |