Merge pull request #1254 from ivandrofly/patch-8

[internal] - minor update
This commit is contained in:
Nikolaj Olsson 2015-09-07 06:23:52 +02:00
commit bffe880f03
2 changed files with 2 additions and 3 deletions

View File

@ -912,7 +912,6 @@ namespace Nikse.SubtitleEdit.Forms
{
p.Subtitle.Paragraphs.RemoveAt(deleteIndex);
}
p.Subtitle.Renumber();
}
}
catch (Exception exception)

View File

@ -99,7 +99,7 @@ namespace Nikse.SubtitleEdit.Forms
}
else
{
string ext = Path.GetExtension(openFileDialog1.FileName).ToLower();
string ext = Path.GetExtension(openFileDialog1.FileName).ToLowerInvariant();
if (ext == ".astx")
LoadAdobeStory(openFileDialog1.FileName);
else
@ -646,7 +646,7 @@ namespace Nikse.SubtitleEdit.Forms
private void SetVideoFileName(string fileName)
{
_videoFileName = fileName.Substring(0, fileName.Length - Path.GetExtension(fileName).Length);
if (_videoFileName.EndsWith(".en"))
if (_videoFileName.EndsWith(".en", StringComparison.Ordinal))
_videoFileName = _videoFileName.Remove(_videoFileName.Length - 3);
if (File.Exists(_videoFileName + ".avi"))
{