diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2024-06-27 11:10:19 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-07-03 15:53:32 +0200 |
commit | c61898a30ad869bcada54ad3434efe3c4366d2ce (patch) | |
tree | 9f7a46ea717857e6a0e64f3a2386f79de6370087 | |
parent | 4e7ac2acefc8cedf95be03d3145b6ef2e6027767 (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
(cherry picked from commit c519de229627f3c6bb7736c810405b441c07f369)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169684
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 8b2860c20c29..e47f46798530 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -86,7 +86,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 ) { |