mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Fixed bug when saving framerate with European "," instead of "." - thx by yannick :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@963 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
bb2b366872
commit
322f960419
@ -744,7 +744,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
gs.ShowToolbarHelp = checkBoxHelp.Checked;
|
||||
|
||||
gs.ShowFrameRate = checkBoxShowFrameRate.Checked;
|
||||
gs.DefaultFrameRate = double.Parse(comboBoxFramerate.Text);
|
||||
double outFrameRate;
|
||||
if (double.TryParse(comboBoxFramerate.Text.Replace(",", "."), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out outFrameRate))
|
||||
gs.DefaultFrameRate = outFrameRate;
|
||||
gs.DefaultEncoding = comboBoxEncoding.Text;
|
||||
gs.AutoGuessAnsiEncoding = checkBoxAutoDetectAnsiEncoding.Checked;
|
||||
gs.SubtitleFontSize = int.Parse(comboBoxSubtitleFontSize.Text);
|
||||
|
@ -785,7 +785,9 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
if (subNode != null)
|
||||
{
|
||||
settings.General.DefaultFrameRate = Convert.ToDouble(subNode.InnerText);
|
||||
settings.General.CurrentFrameRate = Convert.ToDouble(subNode.InnerText);
|
||||
if (settings.General.DefaultFrameRate > 23975)
|
||||
settings.General.DefaultFrameRate = 23.976;
|
||||
settings.General.CurrentFrameRate = settings.General.DefaultFrameRate;
|
||||
}
|
||||
subNode = node.SelectSingleNode("DefaultEncoding");
|
||||
if (subNode != null)
|
||||
|
Loading…
Reference in New Issue
Block a user