mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Run tabspace.
This commit is contained in:
parent
2094ff2586
commit
1af2051eb3
@ -935,7 +935,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
noOfShortDisplayTimes = MoveStartTime(fixAction, noOfShortDisplayTimes, p, temp, next);
|
||||
}
|
||||
|
||||
|
||||
// Make current subtitle duration longer + move next subtitle
|
||||
else if (diffMs < 1200 &&
|
||||
p.StartTime.TotalMilliseconds > Configuration.Settings.General.SubtitleMinimumDisplayMilliseconds &&
|
||||
|
@ -7,10 +7,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
public partial class SetVideoOffset : Form
|
||||
{
|
||||
public bool FromCurrentVideoPosition { get; set; }
|
||||
public bool FromCurrentVideoPosition { get; set; }
|
||||
|
||||
private TimeCode _videoOffset = new TimeCode(0);
|
||||
public TimeCode VideoOffset
|
||||
public TimeCode VideoOffset
|
||||
{
|
||||
get
|
||||
{
|
||||
@ -26,13 +26,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
public SetVideoOffset()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
Text = Configuration.Settings.Language.SetVideoOffset.Title;
|
||||
labelDescription.Text = Configuration.Settings.Language.SetVideoOffset.Description;
|
||||
checkBoxFromCurrentPosition.Text = Configuration.Settings.Language.SetVideoOffset.RelativeToCurrentVideoPosition;
|
||||
buttonOK.Text = Configuration.Settings.Language.General.OK;
|
||||
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
|
||||
FixLargeFonts();
|
||||
FixLargeFonts();
|
||||
}
|
||||
|
||||
private void FixLargeFonts()
|
||||
|
@ -83,7 +83,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
minimumCharsSec = charsSec;
|
||||
if (charsSec > maximumCharsSec)
|
||||
maximumCharsSec = charsSec;
|
||||
totalCharsSec += charsSec;
|
||||
totalCharsSec += charsSec;
|
||||
|
||||
foreach (string line in p.Text.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
|
@ -161,7 +161,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
string appDataRoamingPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Subtitle Edit");
|
||||
|
||||
if ((installerPath != null && installerPath.ToLower().TrimEnd(Path.DirectorySeparatorChar) == BaseDirectory.ToLower().TrimEnd(Path.DirectorySeparatorChar)) ||
|
||||
hasUninstallFiles ||
|
||||
hasUninstallFiles ||
|
||||
(!hasDictionaryFolder && Directory.Exists(Path.Combine(appDataRoamingPath, "Dictionaries"))))
|
||||
{
|
||||
if (Directory.Exists(appDataRoamingPath))
|
||||
@ -183,7 +183,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
System.Windows.Forms.Application.ExitThread();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Instance._dataDir = BaseDirectory;
|
||||
|
@ -1827,7 +1827,7 @@
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string RelativeToCurrentVideoPosition { get; set; }
|
||||
public string RelativeToCurrentVideoPosition { get; set; }
|
||||
}
|
||||
|
||||
public class ShowEarlierLater
|
||||
|
@ -168,7 +168,7 @@ namespace Test
|
||||
string s1 = "Was het in het voor- of najaar?";
|
||||
string s2 = Utilities.RemoveUnneededSpaces(s1, "nl");
|
||||
Assert.AreEqual(s2, s1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user