diff -cNr sc/source/ui/view/formatsh.cxx sc/source/ui/view/formatsh.cxx *** sc/source/ui/view/formatsh.cxx Wed Feb 20 15:22:14 2008 --- sc/source/ui/view/formatsh.cxx Wed Feb 20 15:15:16 2008 *************** *** 1672,1678 **** const SfxItemSet& rAttrSet = pTabViewShell->GetSelectionPattern()->GetItemSet(); const SvxBorderLine* pLine = pTabViewShell->GetDefaultFrameLine(); const SvxBrushItem& rBrushItem = (const SvxBrushItem&)rAttrSet.Get( ATTR_BACKGROUND );//145 ! UINT8 nTrans = rBrushItem.GetColor().GetTransparency(); SfxWhichIter aIter( rSet ); USHORT nWhich = aIter.FirstWhich(); --- 1672,1678 ---- const SfxItemSet& rAttrSet = pTabViewShell->GetSelectionPattern()->GetItemSet(); const SvxBorderLine* pLine = pTabViewShell->GetDefaultFrameLine(); const SvxBrushItem& rBrushItem = (const SvxBrushItem&)rAttrSet.Get( ATTR_BACKGROUND );//145 ! /*UINT8 nTrans = rBrushItem.GetColor().GetTransparency();*/ SfxWhichIter aIter( rSet ); USHORT nWhich = aIter.FirstWhich(); *************** *** 1698,1706 **** case SID_BACKGROUND_COLOR: { Color aColor; ! if ( nTrans == 255 ) aColor.SetColor( SC_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor ); ! else aColor = rBrushItem.GetColor(); rSet.Put( SvxColorItem( aColor, SID_BACKGROUND_COLOR ) ); } --- 1698,1706 ---- case SID_BACKGROUND_COLOR: { Color aColor; ! /*if ( nTrans == 255 ) aColor.SetColor( SC_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor ); ! else*/ aColor = rBrushItem.GetColor(); rSet.Put( SvxColorItem( aColor, SID_BACKGROUND_COLOR ) ); }