diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 17:21:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:46:11 +0000 |
commit | f9b87a2e50e7cc46a19b5fdee61e14d53550393d (patch) | |
tree | 86786cc3c894e3bca8fb240d32fc3d45c83c5f02 /toolkit | |
parent | 879aebdf9cd83b07edbca919d623880d94adb40c (diff) |
move GetXGraphic to its only user
Change-Id: I72ec4a7e72ca3355a97f987fab70b3e3a8e45168
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxmenu.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/awt/vclxwindows.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index aafa5b9c7529..624e61e0634a 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -873,7 +873,7 @@ throw (css::uno::RuntimeException, std::exception) { Image aImage = mpMenu->GetItemImage( nItemId ); if ( !!aImage ) - rxGraphic = aImage.GetXGraphic(); + rxGraphic = Graphic(aImage.GetBitmapEx()).GetXGraphic(); } return rxGraphic; } diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index 9ceaf50fc4f6..ff79b033bd37 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -294,7 +294,7 @@ css::uno::Any VCLXGraphicControl::getProperty( const OUString& PropertyName ) th switch ( nPropType ) { case BASEPROPERTY_GRAPHIC: - aProp <<= maImage.GetXGraphic(); + aProp <<= Graphic(maImage.GetBitmapEx()).GetXGraphic(); break; case BASEPROPERTY_IMAGEALIGN: { |