summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorDirk Völzke <dv@openoffice.org>2001-06-25 12:26:13 +0000
committerDirk Völzke <dv@openoffice.org>2001-06-25 12:26:13 +0000
commitef6e239de18e0c1885c5be9170af0624bc514b16 (patch)
treeb9a04fbb961aa08726cb724781da113b15e3c945 /sfx2
parent90fb0c8d8fbdad59dd2d37b6eb96db1750c1822a (diff)
#88725# Append slash to path before appending names after call of getFiles()
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index f3f4376c4680..2f23c3895957 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: filedlghelper.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: dv $ $Date: 2001-06-22 07:41:36 $
+ * last change: $Author: dv $ $Date: 2001-06-25 13:26:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -760,17 +760,20 @@ ErrCode FileDialogHelper_Impl::execute( SvStringsDtor*& rpURLList,
}
else
{
- const OUString aPath = aPathSeq[0];
+ INetURLObject aPath( aPathSeq[0] );
+ aPath.setFinalSlash();
+
for ( USHORT i = 1; i < aPathSeq.getLength(); ++i )
{
- OUString aFullPath( aPath );
- aFullPath += aPathSeq[i];
+ if ( i == 1 )
+ aPath.Append( aPathSeq[i] );
+ else
+ aPath.setName( aPathSeq[i] );
- String* pURL = new String( aFullPath );
+ String* pURL = new String( aPath.GetMainURL( INetURLObject::NO_DECODE ) );
rpURLList->Insert( pURL, rpURLList->Count() );
}
}
-
return ERRCODE_NONE;
}
else