summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-07-06 15:21:29 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-07-08 00:20:39 +0200
commit9ca92f22bb4bc1931cb1237a2348682b83c00e78 (patch)
tree568c2f6dde8568ab2eba2bed8a34aa8cb87691d9 /filter/source
parent018b59833878afc6f1a4a2489e83235d508e2702 (diff)
tdf#118254 Do not rely on XStatusIndicator for SVG import
For SVGs loaded as Document and status 'hidden' is used, there is no xStatusIndicator handed over to the SVGFilter. Compared with old filter - there it was used setting it somewhere else, but not required. Remove code that it requires it. Change-Id: I9fbf2b4ea02d8c5aae234f78f96b4acd37b7341b Reviewed-on: https://gerrit.libreoffice.org/57062 Tested-by: Jenkins Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> (cherry picked from commit 3a27688e0b54e124ab533b9670da76ef9dc455d2) Reviewed-on: https://gerrit.libreoffice.org/57097 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/svg/svgfilter.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index b143bfef55cc..9c50869ab593 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -117,14 +117,12 @@ sal_Bool SAL_CALL SVGFilter::filter( const Sequence< PropertyValue >& rDescripto
// use MediaDescriptor to get needed data out of Sequence< PropertyValue >
utl::MediaDescriptor aMediaDescriptor(rDescriptor);
uno::Reference<io::XInputStream> xInputStream;
- uno::Reference<task::XStatusIndicator> xStatus;
xInputStream.set(aMediaDescriptor[utl::MediaDescriptor::PROP_INPUTSTREAM()], UNO_QUERY);
- xStatus.set(aMediaDescriptor[utl::MediaDescriptor::PROP_STATUSINDICATOR()], UNO_QUERY);
- if(!xInputStream.is() || !xStatus.is())
+ if(!xInputStream.is())
{
- // we need the InputStream and StatusIndicator
+ // we need the InputStream
break;
}