From 1c228093746112f51475c2c9b3f67e02dd918a5d Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sun, 20 Mar 2016 07:44:12 +0100 Subject: [PATCH] Fix #1645 - thx ivandrofly :) --- src/Forms/EffectKaraoke.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Forms/EffectKaraoke.cs b/src/Forms/EffectKaraoke.cs index e701f245ff..2c494f59dc 100644 --- a/src/Forms/EffectKaraoke.cs +++ b/src/Forms/EffectKaraoke.cs @@ -50,7 +50,7 @@ internal void Initialize(Paragraph paragraph) AddToPreview(richTextBoxPreview, paragraph.Text); RefreshPreview(); labelTotalMilliseconds.Text = string.Format("{0:#,##0.000}", paragraph.Duration.TotalMilliseconds / TimeCode.BaseUnit); - numericUpDownDelay.Maximum = (int)((paragraph.Duration.TotalMilliseconds - 500) / TimeCode.BaseUnit); + numericUpDownDelay.Maximum = (decimal)((paragraph.Duration.TotalMilliseconds - 500) / TimeCode.BaseUnit); numericUpDownDelay.Minimum = 0; numericUpDownDelay.Left = labelEndDelay.Left + labelEndDelay.Width + 5; @@ -222,8 +222,6 @@ private void ButtonPreviewClick(object sender, EventArgs e) private void PlayAnimation() { - _colorList = new List(); - _fontList = new List(); _timerCount = (int)_paragraph.StartTime.TotalMilliseconds; timer1.Start(); } @@ -391,7 +389,7 @@ private void ButtonOkClick(object sender, EventArgs e) public static bool IsTagFollowIndex(string text, int index) { - string tag = string.Empty; + string tag; // , , , if (text.Length >= index + 7) {