From c6a4d4bc7f838dbc4b27080f352d66ddc66a66a9 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 4 Oct 2014 12:43:03 +0200 Subject: [PATCH] Fixed refact bug --- src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs b/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs index 94f5c3a22..53f3607f5 100644 --- a/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs +++ b/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs @@ -1650,7 +1650,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats var cp = GetColorAndPosition(part); if (cp != null) { - if (cp.Y > 0 && y >= 0 && cp.Y > y && !sb.ToString().EndsWith(Environment.NewLine) && string.IsNullOrWhiteSpace(sb.ToString())) + if (cp.Y > 0 && y >= 0 && cp.Y > y && !sb.ToString().EndsWith(Environment.NewLine) && !string.IsNullOrWhiteSpace(sb.ToString())) sb.AppendLine(); if (cp.Y > 0) y = cp.Y;