diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-08-04 15:22:14 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-08-04 15:57:04 +0200 |
commit | 14d0096300685ec508b3b54d773db7767ce3b429 (patch) | |
tree | f3cc9d79a94594ded916237ab480d75805992201 /editeng | |
parent | calc input line: don't reset the scrollbar thumb on resize (diff) | |
download | core-14d0096300685ec508b3b54d773db7767ce3b429.tar.gz core-14d0096300685ec508b3b54d773db7767ce3b429.zip |
kill last (ab)user of SetRanges()
Change-Id: I7f52d67d955896821f2c340fdd51e072b53fdd2f
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/textitem.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 165f64d596de..41ea8a683838 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -3504,15 +3504,10 @@ SvxScriptSetItem::SvxScriptSetItem( sal_uInt16 nSlotId, SfxItemPool& rPool ) { sal_uInt16 nLatin, nAsian, nComplex; GetWhichIds( nLatin, nAsian, nComplex ); - - sal_uInt16 aIds[ 9 ] = { 0 }; - aIds[ 0 ] = aIds[ 1 ] = nLatin; - aIds[ 2 ] = aIds[ 3 ] = nAsian; - aIds[ 4 ] = aIds[ 5 ] = nComplex; - aIds[ 6 ] = aIds[ 7 ] = SID_ATTR_CHAR_SCRIPTTYPE; - aIds[ 8 ] = 0; - - GetItemSet().SetRanges( aIds ); + GetItemSet().MergeRange( nLatin, nLatin ); + GetItemSet().MergeRange( nAsian, nAsian ); + GetItemSet().MergeRange( nComplex, nComplex ); + GetItemSet().MergeRange( SID_ATTR_CHAR_SCRIPTTYPE, SID_ATTR_CHAR_SCRIPTTYPE ); } SfxPoolItem* SvxScriptSetItem::Clone( SfxItemPool * ) const |