summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSJacobi <Sven-Jacobi@gmx.de>2013-06-29 15:52:20 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-29 20:02:45 +0000
commit9911631895f2e42b5c90a108e4940b0091d05ee1 (patch)
tree2d117d13dbcd33942f9d53071745dbd9e587e369 /vcl
parentd5a3cf938907eb9ab61044810d984c73452eb200 (diff)
SVGWriter can now be initialized properly. Removing some strange code peaces.
Change-Id: Ia3011d002c4028008b207505352384f6bb72ce10 Reviewed-on: https://gerrit.libreoffice.org/4619 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/graphicfilter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index d2198d351a2d..eb38d567439a 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -2012,11 +2012,11 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String&
css::uno::Reference< css::xml::sax::XDocumentHandler > xSaxWriter(
xml::sax::Writer::create( xContext ), uno::UNO_QUERY_THROW);
-
+ css::uno::Sequence< css::uno::Any > aArguments( 1 );
+ aArguments[ 0 ] <<= aConfigItem.GetFilterData();
css::uno::Reference< css::svg::XSVGWriter > xSVGWriter(
- xContext->getServiceManager()->createInstanceWithContext( "com.sun.star.svg.SVGWriter", xContext ),
- css::uno::UNO_QUERY );
-
+ xContext->getServiceManager()->createInstanceWithArgumentsAndContext( "com.sun.star.svg.SVGWriter", aArguments, xContext),
+ css::uno::UNO_QUERY );
if( xSaxWriter.is() && xSVGWriter.is() )
{
css::uno::Reference< css::io::XActiveDataSource > xActiveDataSource(