diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx index 66f354ef5ae5..bf877b790392 100644 --- a/unotools/source/config/useroptions.cxx +++ b/unotools/source/config/useroptions.cxx @@ -222,7 +222,7 @@ OUString SvtUserOptions::Impl::GetFullName () const sFullName += GetToken(UserOptToken::FathersName).trim(); if (!sFullName.isEmpty()) sFullName += " "; - sFullName += GetToken(UserOptToken::LastName).trim(); + sFullName += GetToken(UserOptToken::LastName); } else { @@ -231,16 +231,17 @@ OUString SvtUserOptions::Impl::GetFullName () const sFullName = GetToken(UserOptToken::LastName).trim(); if (!sFullName.isEmpty()) sFullName += " "; - sFullName += GetToken(UserOptToken::FirstName).trim(); + sFullName += GetToken(UserOptToken::FirstName); } else { sFullName = GetToken(UserOptToken::FirstName).trim(); if (!sFullName.isEmpty()) sFullName += " "; - sFullName += GetToken(UserOptToken::LastName).trim(); + sFullName += GetToken(UserOptToken::LastName); } } + sFullName = sFullName.trim(); return sFullName; }