diff options
author | emkael <emkael@tlen.pl> | 2017-08-23 18:09:46 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-23 18:09:46 +0200 |
commit | 06372138c88e0a46a823cbc9114b553770c01a3d (patch) | |
tree | a53c2fb0ce824862750f9e4ad50737526725fab7 | |
parent | b936f4d7aac6b677be2c16fe4e750eda2df6f230 (diff) |
Bugfix: shortening after initial, not beforenames-list
-rw-r--r-- | Aktywator/Tournament.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs index 038fdbb..33ecd26 100644 --- a/Aktywator/Tournament.cs +++ b/Aktywator/Tournament.cs @@ -114,10 +114,6 @@ namespace Aktywator virtual internal string shortenNameToBWS(string name) { name = Common.bezOgonkow(name); - if (name.Length > 18) - { - name = name.Substring(0, 18); - } if ("pauza".Equals(name.Trim())) { return " "; @@ -131,7 +127,11 @@ namespace Aktywator { nameParts[0] = (nameParts[0].Length > 0) ? nameParts[0][0].ToString() : " "; } - return String.Join(" ", nameParts); + name = String.Join(" ", nameParts); + } + if (name.Length > 18) + { + name = name.Substring(0, 18); } return name; } |