summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 18:09:46 +0200
committeremkael <emkael@tlen.pl>2017-08-23 18:09:46 +0200
commit06372138c88e0a46a823cbc9114b553770c01a3d (patch)
treea53c2fb0ce824862750f9e4ad50737526725fab7
parentb936f4d7aac6b677be2c16fe4e750eda2df6f230 (diff)
Bugfix: shortening after initial, not beforenames-list
-rw-r--r--Aktywator/Tournament.cs10
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;
}