mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 04:02:36 +01:00
[TimeUpDown] - Do not duplicated split character.
This commit is contained in:
parent
c81cde6386
commit
bfd953d733
@ -50,9 +50,14 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
if (_splitChars == null)
|
||||
{
|
||||
var splitChars = new List<char> { ':', ',', '.' };
|
||||
if (CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.Length == 1)
|
||||
string cultureSeparator = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator;
|
||||
if (cultureSeparator.Length == 1)
|
||||
{
|
||||
splitChars.Add(Convert.ToChar(CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator));
|
||||
char ch = Convert.ToChar(cultureSeparator);
|
||||
if (!splitChars.Contains(ch))
|
||||
{
|
||||
splitChars.Add(ch);
|
||||
}
|
||||
}
|
||||
_splitChars = splitChars.ToArray();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user