summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2024-06-27 11:10:19 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-06-28 14:35:28 +0200
commitc519de229627f3c6bb7736c810405b441c07f369 (patch)
tree3848a3a6b838aaa9b700a718841d6b7c78602af5 /sw
parent9fdb50763720a2970ebab39debf26010a8e6bc62 (diff)
Fix autotext shortcut generation
The first character was replaced with a number. Fallout from 1f93816dd5d75aca98f210017d0b58b7ef1d08da Change-Id: I3b9a39336d5f6f3c10c85231f86fd196a29e3644 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169621 Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/glossary.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index a1c6e69fa980..985c597efefa 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -85,7 +85,7 @@ static OUString lcl_GetValidShortCut( const OUString& rName )
while( rName[nStart-1]==' ' && nStart < nSz )
nStart++;
- OUStringBuffer aBuf(OUString::number(rName[nStart-1]));
+ OUStringBuffer aBuf(rName.subView(nStart-1, 1));
for( ; nStart < nSz; ++nStart )
{