mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Merge pull request #1254 from ivandrofly/patch-8
[internal] - minor update
This commit is contained in:
commit
bffe880f03
@ -912,7 +912,6 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
{
|
{
|
||||||
p.Subtitle.Paragraphs.RemoveAt(deleteIndex);
|
p.Subtitle.Paragraphs.RemoveAt(deleteIndex);
|
||||||
}
|
}
|
||||||
p.Subtitle.Renumber();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
@ -99,7 +99,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string ext = Path.GetExtension(openFileDialog1.FileName).ToLower();
|
string ext = Path.GetExtension(openFileDialog1.FileName).ToLowerInvariant();
|
||||||
if (ext == ".astx")
|
if (ext == ".astx")
|
||||||
LoadAdobeStory(openFileDialog1.FileName);
|
LoadAdobeStory(openFileDialog1.FileName);
|
||||||
else
|
else
|
||||||
@ -646,7 +646,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
private void SetVideoFileName(string fileName)
|
private void SetVideoFileName(string fileName)
|
||||||
{
|
{
|
||||||
_videoFileName = fileName.Substring(0, fileName.Length - Path.GetExtension(fileName).Length);
|
_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);
|
_videoFileName = _videoFileName.Remove(_videoFileName.Length - 3);
|
||||||
if (File.Exists(_videoFileName + ".avi"))
|
if (File.Exists(_videoFileName + ".avi"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user