diff options
-rw-r--r-- | sc/source/ui/drawfunc/drawsh2.cxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sc/source/ui/drawfunc/drawsh2.cxx b/sc/source/ui/drawfunc/drawsh2.cxx index b63732ad792e..47df366fdf93 100644 --- a/sc/source/ui/drawfunc/drawsh2.cxx +++ b/sc/source/ui/drawfunc/drawsh2.cxx @@ -295,23 +295,12 @@ void ScDrawShell::GetDrawAttrState( SfxItemSet& rSet ) if( bHasMarked ) { - rSet.Put( pDrView->GetAttrFromMarked(false) ); - - // Wenn die View selektierte Objekte besitzt, muessen entspr. Items - // von SFX_ITEM_DEFAULT (_ON) auf SFX_ITEM_DISABLED geaendert werden - - SfxWhichIter aIter( rSet, XATTR_LINE_FIRST, XATTR_FILL_LAST ); - sal_uInt16 nWhich = aIter.FirstWhich(); - while( nWhich ) - { - if( SFX_ITEM_DEFAULT == rSet.GetItemState( nWhich ) ) - rSet.DisableItem( nWhich ); - - nWhich = aIter.NextWhich(); - } + rSet.Put( pDrView->GetAttrFromMarked(false), false ); } else + { rSet.Put( pDrView->GetDefaultAttr() ); + } SdrPageView* pPV = pDrView->GetSdrPageView(); if ( pPV ) |