From d88b72584b9de3ea88062d1c3879b9cc8c98754e Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Sun, 6 Sep 2015 21:06:59 +0100 Subject: [PATCH] [internal] - minor update --- src/Forms/BatchConvert.cs | 1 - src/Forms/ImportText.cs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Forms/BatchConvert.cs b/src/Forms/BatchConvert.cs index d2a1ed51b..8b684a7ed 100644 --- a/src/Forms/BatchConvert.cs +++ b/src/Forms/BatchConvert.cs @@ -912,7 +912,6 @@ namespace Nikse.SubtitleEdit.Forms { p.Subtitle.Paragraphs.RemoveAt(deleteIndex); } - p.Subtitle.Renumber(); } } catch (Exception exception) diff --git a/src/Forms/ImportText.cs b/src/Forms/ImportText.cs index 588ef7082..10f61e6d0 100644 --- a/src/Forms/ImportText.cs +++ b/src/Forms/ImportText.cs @@ -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")) {