summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-03 21:42:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-03 23:03:07 +0200
commita3d4f7e8fb714aa987c542c8d6c8822a41818701 (patch)
treee5d3770e15c155e972660b0f21b66206e0a78312 /unotools
parent08850dbead8a8a797965aaa97d43d639bc0814d3 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/useroptions.cxx6
1 files changed, 3 insertions, 3 deletions
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();