diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 4a77f4214e91..ca667f30be63 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -5385,7 +5385,7 @@ bool SvxIconSelectorDialog::ReplaceGraphicItem( } pTbSymbol->InsertItem( nId,aImage, aURL, ToolBoxItemBits::NONE, 0 ); //modify - xGraphic = aImage.GetXGraphic(); + xGraphic = Graphic(aImage.GetBitmapEx()).GetXGraphic(); URLs[0] = aURL; aImportGraph[ 0 ] = xGraphic; @@ -5548,7 +5548,7 @@ bool SvxIconSelectorDialog::ImportGraphic( const OUString& aURL ) { pTbSymbol->InsertItem( nId, aImage, aURL, ToolBoxItemBits::NONE, 0 ); - xGraphic = aImage.GetXGraphic(); + xGraphic = Graphic(aImage.GetBitmapEx()).GetXGraphic(); xGraphic->acquire(); pTbSymbol->SetItemData( |