summaryrefslogtreecommitdiff
path: root/basic/source/runtime/methods.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-09-30 12:57:52 +0000
committerKurt Zenker <kz@openoffice.org>2004-09-30 12:57:52 +0000
commitdc8642335336d6147723564eb67a2dd1d8123578 (patch)
tree87d12dd3776dfd6a17330699b0ff4fd474b52cd7 /basic/source/runtime/methods.cxx
parentffbd2d666818bb516fde57ad33c3e4c9ac57e185 (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.cxx12
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 );
}