summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-15 11:05:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-15 12:44:10 +0100
commit1323a62d2156a551eae46d249e37d9d84bc280b0 (patch)
tree468bbee2c8c27615f90b855a1ce76b3a38ca67c5
parenta4fd6f2eb41176abe34d1f82a9b9d4561f3336ac (diff)
use SetGraphic instead of temporary GraphicObject
Change-Id: I220600e110e7bd2b602092c4a6f98521b0d8d43c
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index bf2ed0f4b16e..e6c35df791eb 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -455,11 +455,11 @@ bool XFillBitmapItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
{
if(xBmp.is())
{
- maGraphicObject = Graphic(VCLUnoHelper::GetBitmap(xBmp));
+ maGraphicObject.SetGraphic(VCLUnoHelper::GetBitmap(xBmp));
}
else if(xGraphic.is())
{
- maGraphicObject = Graphic(xGraphic);
+ maGraphicObject.SetGraphic(xGraphic);
}
}