Fix for fix regarding "Avoid NullReferenceException" - thx alfaproject :)

This commit is contained in:
niksedk 2014-09-14 15:00:49 +02:00
parent c83a2202cb
commit 595db02db8
2 changed files with 1 additions and 3 deletions

View File

@ -195,7 +195,7 @@ namespace Nikse.SubtitleEdit.Controls
}
set
{
if (value == null && value.TotalMilliseconds >= TimeCode.MaxTime.TotalMilliseconds - 0.1)
if (value == null || value.TotalMilliseconds >= TimeCode.MaxTime.TotalMilliseconds - 0.1)
{
maskedTextBox1.Text = string.Empty;
return;

View File

@ -8617,8 +8617,6 @@ namespace Nikse.SubtitleEdit.Forms
private void ButtonUnBreakClick(object sender, EventArgs e)
{
timeUpDownStartTime.TimeCode = null;
if (SubtitleListview1.SelectedItems.Count > 1)
{
MakeHistoryForUndo(_language.BeforeRemoveLineBreaksInSelectedLines);