diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/graphicfilter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx index dfebd3716e23..6a98abaf1fb4 100644 --- a/vcl/source/filter/graphicfilter.cxx +++ b/vcl/source/filter/graphicfilter.cxx @@ -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 ); } |