summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-30 09:18:18 +0200
committerNoel Grandin <noel@peralex.com>2013-02-11 08:02:14 +0200
commit45d416d31558eb50e75cb246198137d171387797 (patch)
tree44888b88b5a882845f8b89d382d8a0b0a2caf0ef /forms
parent2e801b9933e318fe5e323e86758aa38b4b6a553d (diff)
fdo#46808, convert svt::GraphicAccess to XComponentContext
Change-Id: I081158bc43bf39ad165c14d8ada31dd0142ca82c
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ImageControl.cxx2
-rw-r--r--forms/source/component/imgprod.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index a466a9d2bcf9..8100ce2551dc 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -420,7 +420,7 @@ sal_Bool OImageControlModel::impl_updateStreamForURL_lck( const ::rtl::OUString&
if ( ::svt::GraphicAccess::isSupportedURL( _rURL ) )
{
- xImageStream = ::svt::GraphicAccess::getImageXStream( getContext().getLegacyServiceFactory(), _rURL );
+ xImageStream = ::svt::GraphicAccess::getImageXStream( getContext().getUNOContext(), _rURL );
}
else
{
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx
index 46f688a38a0a..282e936a91ca 100644
--- a/forms/source/component/imgprod.cxx
+++ b/forms/source/component/imgprod.cxx
@@ -236,7 +236,7 @@ void ImageProducer::SetImage( const ::rtl::OUString& rPath )
if ( ::svt::GraphicAccess::isSupportedURL( maURL ) )
{
- mpStm = ::svt::GraphicAccess::getImageStream( ::comphelper::getProcessServiceFactory(), maURL );
+ mpStm = ::svt::GraphicAccess::getImageStream( ::comphelper::getProcessComponentContext(), maURL );
}
else if( !maURL.isEmpty() )
{