mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Merge pull request #4355 from OmrSi/color-single-line-length-label
Work on "Single Line Length" label color
This commit is contained in:
commit
df360d2588
@ -639,14 +639,13 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
if (i > max)
|
||||
{
|
||||
label.ForeColor = Color.Red;
|
||||
sb.Append("...");
|
||||
label.Text = sb.ToString();
|
||||
return;
|
||||
}
|
||||
|
||||
sb.Append(line.Length);
|
||||
if (line.Length > Configuration.Settings.General.SubtitleLineMaximumLength)
|
||||
if (line.Length > Configuration.Settings.General.SubtitleLineMaximumLength || i >= Configuration.Settings.General.MaxNumberOfLines)
|
||||
{
|
||||
label.ForeColor = Color.Red;
|
||||
}
|
||||
@ -670,7 +669,6 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
if (i > max)
|
||||
{
|
||||
label.ForeColor = Color.Red;
|
||||
sb.Append("...");
|
||||
label.Text = sb.ToString();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user