summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/pdfiadaptor.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-26 14:08:20 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-26 14:08:20 +0000
commit3ba82371e2629bf9a6e3b2c87dd419fa35af87b4 (patch)
treeeae22eb2cc664b9b391b058d488afedebab53c42 /sdext/source/pdfimport/pdfiadaptor.cxx
parent7fdbe1dd5f6e42818b34390c379220dd67e42314 (diff)
CWS-TOOLING: integrate CWS impress157_DEV300
Diffstat (limited to 'sdext/source/pdfimport/pdfiadaptor.cxx')
-rw-r--r--sdext/source/pdfimport/pdfiadaptor.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/pdfiadaptor.cxx b/sdext/source/pdfimport/pdfiadaptor.cxx
index 6c6c9732cbfd..8b6db0ff972d 100644
--- a/sdext/source/pdfimport/pdfiadaptor.cxx
+++ b/sdext/source/pdfimport/pdfiadaptor.cxx
@@ -99,15 +99,18 @@ sal_Bool SAL_CALL PDFIHybridAdaptor::filter( const uno::Sequence< beans::Propert
bool bAddPwdProp = false;
if( ! xSubStream.is() )
{
+ uno::Reference< io::XInputStream > xInput;
for( sal_Int32 i = 0; i < nAttribs; i++ )
{
- if( pAttribs[i].Name.equalsAscii( "Stream" ) )
- pAttribs[i].Value >>= xSubStream;
+ if( pAttribs[i].Name.equalsAscii( "InputStream" ) )
+ {
+ pAttribs[i].Value >>= xInput;
+ break;
+ }
}
- if( xSubStream.is() )
+ if( xInput.is() )
{
// TODO(P2): extracting hybrid substream twice - once during detection, second time here
- uno::Reference< io::XInputStream > xInput( xSubStream->getInputStream() );
uno::Reference< io::XSeekable > xSeek( xInput, uno::UNO_QUERY );
if( xSeek.is() )
xSeek->seek( 0 );