summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/func/fudraw.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx
index 223ee7e6e482..77a6a14010b7 100644
--- a/sd/source/ui/func/fudraw.cxx
+++ b/sd/source/ui/func/fudraw.cxx
@@ -900,11 +900,15 @@ bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrViewE
else
{
OUString sBookmark( pInfo->GetBookmark() );
- aHelpText += sBookmark.getToken( 2, '.' );
+ sal_Int32 nIdx{ 0 };
+ const OUString s0{ sBookmark.getToken( 0, '.', nIdx ) };
+ const OUString s1{ sBookmark.getToken( 0, '.', nIdx ) };
+ const OUString s2{ sBookmark.getToken( 0, '.', nIdx ) };
+ aHelpText += s2;
aHelpText += ".";
- aHelpText += sBookmark.getToken( 1, '.' );
+ aHelpText += s1;
aHelpText += ".";
- aHelpText += sBookmark.getToken( 0, '.' );
+ aHelpText += s0;
}
}
break;