diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-09-30 12:57:52 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-09-30 12:57:52 +0000 |
commit | dc8642335336d6147723564eb67a2dd1d8123578 (patch) | |
tree | 87d12dd3776dfd6a17330699b0ff4fd474b52cd7 /basic/source/runtime/methods.cxx | |
parent | ffbd2d666818bb516fde57ad33c3e4c9ac57e185 (diff) |
#i10000# Undo previous changes, fixed tools/urlobj.cxx instead.
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index b86fb91663fa..9538b018ba0e 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -2,9 +2,9 @@ * * $RCSfile: methods.cxx,v $ * - * $Revision: 1.56 $ + * $Revision: 1.57 $ * - * last change: $Author: vg $ $Date: 2004-09-30 13:27:47 $ + * last change: $Author: kz $ $Date: 2004-09-30 13:57:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -268,11 +268,9 @@ String getFullPath( const String& aRelPath ) // #80204 Try first if it already is a valid URL INetURLObject aURLObj( aRelPath ); - if (!aURLObj.HasError() && aURLObj.GetProtocol() != INET_PROT_GENERIC) - { - aFileURL = aURLObj.GetMainURL( INetURLObject::NO_DECODE ); - } - else + aFileURL = aURLObj.GetMainURL( INetURLObject::NO_DECODE ); + + if( !aFileURL.getLength() ) { File::getFileURLFromSystemPath( aRelPath, aFileURL ); } |