summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/services/substitutepathvars.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index 8ab37964527c..ad75eee41d14 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -1070,13 +1070,8 @@ throw ( RuntimeException )
OUString aTemp;
if ( osl::FileBase::getFileURLFromSystemPath( rURL, aTemp ) == osl::FileBase::E_None )
{
- if ( !aTemp.isEmpty() )
- {
- aURL = INetURLObject( aTemp ).GetMainURL( INetURLObject::NO_DECODE );
- if( aURL.isEmpty() )
- return rURL;
- }
- else
+ aURL = INetURLObject( aTemp ).GetMainURL( INetURLObject::NO_DECODE );
+ if( aURL.isEmpty() )
return rURL;
}
else