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
? pFilter->GetImportFormatNumber( rFilterName )
: GRFILTER_FORMAT_DONTKNOW;
SvStream* pStream = NULL;
INetURLObject aURL( rPath );
if ( aURL.HasError() || INET_PROT_NOT_VALID == aURL.GetProtocol() )
if ( aURL.HasError() )
{
aURL.SetSmartProtocol( INET_PROT_FILE );
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 );
}
......
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