summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-13 12:38:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-14 11:13:24 +0100
commitcfbd74c3798bd2a71f2cc4d856cb701ca9e2d696 (patch)
tree8a7d6c6611434654f3a16f54a26c206b102d6767 /vcl
parent24cad6a6490b245bd88ec3e3c87195628914f6a2 (diff)
Minor clean-up
Change-Id: Ia6d8a3ddd003558cace81837753e93427737023a
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/graphicfilter.cxx8
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 );
}