summaryrefslogtreecommitdiff
path: root/writerperfect/source/draw/MSPUBImportFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/draw/MSPUBImportFilter.cxx')
-rw-r--r--writerperfect/source/draw/MSPUBImportFilter.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/writerperfect/source/draw/MSPUBImportFilter.cxx b/writerperfect/source/draw/MSPUBImportFilter.cxx
index 5f886ab7cc92..b80b6d62e3ff 100644
--- a/writerperfect/source/draw/MSPUBImportFilter.cxx
+++ b/writerperfect/source/draw/MSPUBImportFilter.cxx
@@ -35,7 +35,6 @@ using com::sun::star::io::XInputStream;
using com::sun::star::io::XSeekable;
using com::sun::star::uno::Sequence;
using namespace ::rtl;
-using rtl::OString;
using rtl::OUString;
using com::sun::star::uno::Sequence;
using com::sun::star::uno::Reference;
@@ -70,16 +69,12 @@ throw (RuntimeException)
{
if ( pValue[i].Name == "InputStream" )
pValue[i].Value >>= xInputStream;
- else if ( pValue[i].Name == "URL" )
- pValue[i].Value >>= sURL;
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
return sal_False;
}
- OString sFileName;
- sFileName = OUStringToOString(sURL, RTL_TEXTENCODING_INFO_ASCII);
// An XML import service: what we push sax messages to..
OUString sXMLImportService ( "com.sun.star.comp.Draw.XMLOasisImporter" );
@@ -138,6 +133,9 @@ throw( com::sun::star::uno::RuntimeException )
pValue[i].Value >>= xInputStream;
}
+ if (!xInputStream.is())
+ return ::rtl::OUString();
+
WPXSvInputStream input( xInputStream );
if (libmspub::MSPUBDocument::isSupported(&input))