summaryrefslogtreecommitdiff
path: root/svx/source/unoedit/unotext.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-08-14 08:12:50 +0000
committerChristian Lippka <cl@openoffice.org>2001-08-14 08:12:50 +0000
commitec655436f00e00f4005955b0d7c89ce2ddbb1722 (patch)
tree049cf26170b292563cdf278ea76a6e5791bf64c0 /svx/source/unoedit/unotext.cxx
parente7fe4a99dd73faada2bba2d66896d8c50ff67843 (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.cxx9
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++;