Kaydet (Commit) cfbd74c3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Minor clean-up

Change-Id: Ia6d8a3ddd003558cace81837753e93427737023a
üst 24cad6a6
...@@ -2196,15 +2196,15 @@ int GraphicFilter::LoadGraphic( const OUString &rPath, const OUString &rFilterNa ...@@ -2196,15 +2196,15 @@ int GraphicFilter::LoadGraphic( const OUString &rPath, const OUString &rFilterNa
? pFilter->GetImportFormatNumber( rFilterName ) ? pFilter->GetImportFormatNumber( rFilterName )
: GRFILTER_FORMAT_DONTKNOW; : GRFILTER_FORMAT_DONTKNOW;
SvStream* pStream = NULL;
INetURLObject aURL( rPath ); INetURLObject aURL( rPath );
if ( aURL.HasError() )
if ( aURL.HasError() || INET_PROT_NOT_VALID == aURL.GetProtocol() )
{ {
aURL.SetSmartProtocol( INET_PROT_FILE ); aURL.SetSmartProtocol( INET_PROT_FILE );
aURL.SetSmartURL( rPath ); aURL.SetSmartURL( rPath );
} }
else if ( INET_PROT_FILE != aURL.GetProtocol() )
SvStream* pStream = NULL;
if ( INET_PROT_FILE != aURL.GetProtocol() )
{ {
pStream = ::utl::UcbStreamHelper::CreateStream( rPath, STREAM_READ ); pStream = ::utl::UcbStreamHelper::CreateStream( rPath, STREAM_READ );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment