From 8f5629fd5aafc85e509a4160a11a285b0a66e7c0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 11 Jun 2012 13:15:18 +0100 Subject: remove EraseLeadingChars and EraseTrailingChars Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892 --- sc/source/ui/drawfunc/drtxtob.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/drawfunc/drtxtob.cxx') diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx index 08245a58b91d..9029b5c7d646 100644 --- a/sc/source/ui/drawfunc/drtxtob.cxx +++ b/sc/source/ui/drawfunc/drtxtob.cxx @@ -28,7 +28,7 @@ #include #include - +#include #include "scitems.hxx" #include @@ -409,8 +409,7 @@ void ScDrawTextObjectBar::GetState( SfxItemSet& rSet ) // use selected text as name for urls String sReturn = pOutView->GetSelected(); sReturn.Erase(255); - sReturn.EraseTrailingChars(); - aHLinkItem.SetName(sReturn); + aHLinkItem.SetName(comphelper::string::stripEnd(sReturn, ' ')); } } rSet.Put(aHLinkItem); -- cgit