Skip to content

Commit

Permalink
Fix #1645 - thx ivandrofly :)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksedk committed Mar 20, 2016
1 parent 4b39e87 commit 1c22809
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Forms/EffectKaraoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -222,8 +222,6 @@ private void ButtonPreviewClick(object sender, EventArgs e)

private void PlayAnimation()
{
_colorList = new List<ColorEntry>();
_fontList = new List<FontEntry>();
_timerCount = (int)_paragraph.StartTime.TotalMilliseconds;
timer1.Start();
}
Expand Down Expand Up @@ -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;
// <i>, </i>, <font...>, </font>
if (text.Length >= index + 7)
{
Expand Down

0 comments on commit 1c22809

Please sign in to comment.