diff options
author | Andreas Bille <abi@openoffice.org> | 2001-05-29 12:16:17 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2001-05-29 12:16:17 +0000 |
commit | 97ddc9ae947308f8d993ea4c002613fbcf4204a1 (patch) | |
tree | 051e5639d3f8a64aa65cf0e26910f433fd44ce27 | |
parent | 589b97914df28f1e3fef97c682136203ae04caf1 (diff) |
fix #87493# extract the factory names fixed
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 3b4b0b343c98..0be66d841283 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: newhelp.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: pb $ $Date: 2001-04-23 12:02:45 $ + * last change: $Author: abi $ $Date: 2001-05-29 13:16:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -715,11 +715,7 @@ void SfxHelpIndexWindow_Impl::Initialize() aTitle = aRow.GetToken( 0, '\t', nIdx ); aType = aRow.GetToken( 0, '\t', nIdx ); aURL = aRow.GetToken( 0, '\t', nIdx ); - aURL.Erase( aURL.Len() - 1 ); - ::rtl::OUString aTemp( aURL ); - sal_Int32 nCharPos = aTemp.lastIndexOf( '/' ); - String* pFactory = new String( aTemp.copy( nCharPos + 1 ) ); - + String* pFactory = new String( INetURLObject( aURL ).GetHost() ); USHORT nPos = aActiveLB.InsertEntry( aTitle ); aActiveLB.SetEntryData( nPos, (void*)(ULONG)pFactory ); } |