summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2001-07-13 07:11:33 +0000
committerPhilipp Lohmann <pl@openoffice.org>2001-07-13 07:11:33 +0000
commit1939c75f3d81df4c2ca724ee9ce4b9ea79ecbf46 (patch)
tree8ec98f0d6e3e5685ddd400a3344d2cc8beab7174 /tools
parentcb5a536dc3b11b22bf228e2c56afb92120df533c (diff)
#89637# do not append an additional slash if one is already there
Diffstat (limited to 'tools')
-rw-r--r--tools/source/rc/resmgr.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index e4f318945e66..b215f0020755 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: resmgr.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: pl $ $Date: 2001-07-05 10:58:16 $
+ * last change: $Author: pl $ $Date: 2001-07-13 08:11:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -262,7 +262,8 @@ void InternalResMgr::GetResMgrPath( InternalResMgr* pThis,
{
::rtl::OUString aUrl;
::osl::File::getFileURLFromSystemPath( aPath, aUrl );
- aUrl += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) );
+ if( aUrl.lastIndexOf( '/' ) != aUrl.getLength()-1 )
+ aUrl += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) );
aUrl += aFileName;
::osl::FileStatus aStatus( FileStatusMask_Type | FileStatusMask_LinkTargetURL );
::osl::DirectoryItem aItem;