diff options
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 7783e65756e1..c4f5ddf17980 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -152,8 +152,8 @@ lcl_ConvertTOUNameToUserName(OUString& rTmp) USER_AND_SUFFIXLEN == rTmp.getLength()) { //make sure that in non-English versions the " (user)" suffix is removed - if (rTmp.match(cUserDefined) && - rTmp.matchAsciiL(cUserSuffix, sizeof(cUserSuffix), USER_LEN)) + if (rTmp.startsWith(cUserDefined) && + rTmp.match(cUserSuffix, USER_LEN)) { rTmp = cUserDefined; } |