diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index 3570c4c703ed..4760f19dc235 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -18,7 +18,6 @@ */ -#include <comphelper/string.hxx> #include <sot/formats.hxx> #include <svl/urlbmk.hxx> #include <svl/stritem.hxx> @@ -1186,7 +1185,7 @@ OUString GalleryBrowser2::GetItemText( const GalleryTheme& rTheme, const SgaObje if( aTitle.isEmpty() ) { aTitle = aURL.GetMainURL( INetURLObject::DecodeMechanism::Unambiguous ); - aTitle = aTitle.getToken( comphelper::string::getTokenCount(aTitle, '/') - 1, '/' ); + aTitle = aTitle.copy( aTitle.lastIndexOf('/')+1 ); } aRet += aTitle; |