diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 16:03:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 16:45:47 +0000 |
commit | aa0951b22d958813a41f71f536bb4a07aa0e7f07 (patch) | |
tree | dc58cec78e5bc98de71bd9354cedf1744f0ca18d /framework | |
parent | 92bfe7e3052a7540c81d9fa152f55920ad00b8ee (diff) |
empty Image is an empty XGraphic
Change-Id: I43fa17c2ef9324c841344554b093500d0fb26165
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uiconfiguration/imagemanagerimpl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx index 6d6e6bae05d2..d1e73bc3b633 100644 --- a/framework/source/uiconfiguration/imagemanagerimpl.cxx +++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx @@ -224,7 +224,7 @@ static bool implts_checkAndScaleGraphic( uno::Reference< XGraphic >& rOutGraphic if ( !rInGraphic.is() ) { - rOutGraphic = Image().GetXGraphic(); + rOutGraphic = uno::Reference<graphic::XGraphic>(); return false; } @@ -882,7 +882,7 @@ throw ( css::lang::IllegalArgumentException, pDefaultImageList = implts_getDefaultImageList(); } ImageList* pImageList = implts_getUserImageList(nIndex); - uno::Reference< XGraphic > xEmptyGraphic( Image().GetXGraphic() ); + uno::Reference<XGraphic> xEmptyGraphic; for ( sal_Int32 i = 0; i < aCommandURLSequence.getLength(); i++ ) { @@ -1034,8 +1034,8 @@ void ImageManagerImpl::reload() rGlobalImageList = implts_getGlobalImageList(); pDefaultImageList = implts_getDefaultImageList(); } - uno::Reference< XGraphic > xEmptyGraphic( Image().GetXGraphic() ); - CommandMap::const_iterator pIter = aOldUserCmdImageSet.begin(); + uno::Reference<XGraphic> xEmptyGraphic; + CommandMap::const_iterator pIter = aOldUserCmdImageSet.begin(); while ( pIter != aOldUserCmdImageSet.end() ) { if ( !pIter->second ) |