unotools/source/config/useroptions.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit a3d4f7e8fb714aa987c542c8d6c8822a41818701 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jun 3 21:42:56 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jun 3 23:03:07 2022 +0200 tdf#146988 Opening at cursor position doesn't work in large documents regression from commit 07021596acb3d104ba129d371b1ae0b79f67a6a4 (HEAD) Date: Sat Jun 12 18:57:51 2021 +0200 tdf#142242 Forename imported with trailing space Change-Id: I792fbe5955de464f41ac61c85f1ca651121b4a99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135372 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx index 61273bfbe9fb..fb8b24d9f05c 100644 --- a/unotools/source/config/useroptions.cxx +++ b/unotools/source/config/useroptions.cxx @@ -221,7 +221,7 @@ OUString SvtUserOptions::Impl::GetFullName () const sFullName += o3tl::trim(GetToken(UserOptToken::FathersName)); if (!sFullName.isEmpty()) sFullName += " "; - sFullName += GetToken(UserOptToken::LastName); + sFullName += o3tl::trim(GetToken(UserOptToken::LastName)); } else { @@ -230,14 +230,14 @@ OUString SvtUserOptions::Impl::GetFullName () const sFullName = GetToken(UserOptToken::LastName).trim(); if (!sFullName.isEmpty()) sFullName += " "; - sFullName += GetToken(UserOptToken::FirstName); + sFullName += o3tl::trim(GetToken(UserOptToken::FirstName)); } else { sFullName = GetToken(UserOptToken::FirstName).trim(); if (!sFullName.isEmpty()) sFullName += " "; - sFullName += GetToken(UserOptToken::LastName); + sFullName += o3tl::trim(GetToken(UserOptToken::LastName)); } } sFullName = sFullName.trim();