diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index 2d2d3ccf5a7c..394c30f1e64d 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pkgcontent.cxx,v $ * - * $Revision: 1.49 $ + * $Revision: 1.50 $ * - * last change: $Author: hr $ $Date: 2004-04-14 13:39:27 $ + * last change: $Author: kz $ $Date: 2004-05-19 16:42:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1752,7 +1752,8 @@ void Content::insert( } rtl::OUString aNewURL = m_aUri.getParentUri(); - aNewURL += rtl::OUString::createFromAscii( "/" ); + if (1 + aNewURL.lastIndexOf('/') != aNewURL.getLength()) + aNewURL += rtl::OUString::createFromAscii( "/" ); aNewURL += PackageUri::encodeSegment( m_aProps.aTitle ); PackageUri aNewUri( aNewURL ); |