summaryrefslogtreecommitdiff
path: root/editeng/source/items/frmitems.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/items/frmitems.cxx')
-rw-r--r--editeng/source/items/frmitems.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 02c93014efff..a4eceebc7a57 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -3959,8 +3959,7 @@ rtl::Reference< GraphicObject > SvxBrushItem::GetGraphicObject() const
}
else
{
- pImpl->mxGraphicObject = GraphicObject::Create();
- pImpl->mxGraphicObject->SetGraphic( aGraphic );
+ pImpl->mxGraphicObject = GraphicObject::Create( aGraphic );
const_cast < SvxBrushItem*> (this)->ApplyGraphicTransparency_Impl();
}
}
@@ -4007,10 +4006,7 @@ void SvxBrushItem::SetGraphic( const Graphic& rNew )
{
if ( !pStrLink )
{
- if ( pImpl->mxGraphicObject.is() )
- pImpl->mxGraphicObject->SetGraphic( rNew );
- else
- pImpl->mxGraphicObject = GraphicObject::Create( rNew );
+ pImpl->mxGraphicObject = GraphicObject::Create( rNew );
ApplyGraphicTransparency_Impl();