summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 18:10:11 +0200
committeremkael <emkael@tlen.pl>2017-08-23 18:10:11 +0200
commit9b82b77300a1c44828c271557f44bfc9fe27ee30 (patch)
treeb0363bf3b9025530ee582ad4fb5862fe5faf0d8c /Aktywator
parent21e004434b991ffe89d3c47917308ef58a5b7b3c (diff)
parent06372138c88e0a46a823cbc9114b553770c01a3d (diff)
Merge branch 'names-list' into 1.1-beta
Diffstat (limited to 'Aktywator')
-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;
}