diff options
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/Library_pdfimport.mk | 1 | ||||
-rw-r--r-- | sdext/source/pdfimport/filterdet.cxx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sdext/Library_pdfimport.mk b/sdext/Library_pdfimport.mk index ca7d5ac80920..dec3c3aa75c1 100644 --- a/sdext/Library_pdfimport.mk +++ b/sdext/Library_pdfimport.mk @@ -20,6 +20,7 @@ $(eval $(call gb_Library_set_include,pdfimport,\ $(eval $(call gb_Library_use_libraries,pdfimport,\ basegfx \ + comphelper \ vcl \ cppu \ cppuhelper \ diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx index 23bb0c91ab24..e966529f7eb2 100644 --- a/sdext/source/pdfimport/filterdet.cxx +++ b/sdext/source/pdfimport/filterdet.cxx @@ -32,6 +32,7 @@ #include <com/sun/star/io/XStream.hpp> #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/TempFile.hpp> +#include <comphelper/fileurl.hxx> #include <cppuhelper/supportsservice.hxx> #include <boost/scoped_ptr.hpp> #include <string.h> @@ -256,7 +257,7 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF // check for hybrid PDF oslFileHandle aFile = NULL; if( bSuccess && - ( aURL.isEmpty() || !aURL.startsWith( "file:" ) ) + ( aURL.isEmpty() || !comphelper::isFileUrl(aURL) ) ) { sal_uInt64 nWritten = 0; |