mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Use char replace instead
This commit is contained in:
parent
1ad2d84334
commit
3d4834b0ca
@ -906,13 +906,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
if (Directory.GetFiles(dir, name.Replace("-", "_") + "_user.xml").Length == 1)
|
||||
if (Directory.GetFiles(dir, name.Replace('-', '_') + "_user.xml").Length == 1)
|
||||
{
|
||||
if (!cultures.Contains(culture))
|
||||
cultures.Add(culture);
|
||||
}
|
||||
|
||||
if (Directory.GetFiles(dir, name.Replace("-", "_") + "_names_etc.xml").Length == 1)
|
||||
if (Directory.GetFiles(dir, name.Replace('-', '_') + "_names_etc.xml").Length == 1)
|
||||
{
|
||||
if (!cultures.Contains(culture))
|
||||
cultures.Add(culture);
|
||||
@ -1007,7 +1007,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
gs.ShowFrameRate = checkBoxShowFrameRate.Checked;
|
||||
double outFrameRate;
|
||||
if (double.TryParse(comboBoxFrameRate.Text.Replace(",", "."), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out outFrameRate))
|
||||
if (double.TryParse(comboBoxFrameRate.Text.Replace(',', '.'), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out outFrameRate))
|
||||
gs.DefaultFrameRate = outFrameRate;
|
||||
|
||||
gs.DefaultEncoding = Encoding.UTF8.BodyName;
|
||||
|
Loading…
Reference in New Issue
Block a user