Changed default value for max single line length from 65 to 43 (can be changed in options)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@308 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-02-02 22:36:15 +00:00
parent e8114f4272
commit 10baee3373
2 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ namespace Nikse.SubtitleEdit.Logic
RememberSelectedLine = false;
StartLoadLastFile = true;
StartRememberPositionAndSize = true;
SubtitleLineMaximumLength = 65;
SubtitleLineMaximumLength = 43;
AutoWrapLineWhileTyping = true;
SubtitleMaximumCharactersPerSeconds = 25;
SpellCheckLanguage = null;

View File

@ -2073,7 +2073,7 @@ namespace Nikse.SubtitleEdit.Logic
internal static void CheckAutoWrap(TextBox textBox, KeyEventArgs e, int numberOfNewLines)
{
if (e.Modifiers == Keys.None && numberOfNewLines < 1 && textBox.Text.Length > Configuration.Settings.General.SubtitleLineMaximumLength - 3)
if (e.Modifiers == Keys.None && numberOfNewLines < 1 && textBox.Text.Length >= Configuration.Settings.General.SubtitleLineMaximumLength)
{
if (Configuration.Settings.General.AutoWrapLineWhileTyping) // only if auto-break-setting is true
{