Fix for inconsistency in change brightness - thx nautilus7 :)

Fix #7261
This commit is contained in:
niksedk 2023-08-19 09:30:37 +02:00
parent c0a6626181
commit fa7c4199c9

View File

@ -80,10 +80,10 @@ namespace Nikse.SubtitleEdit.Forms.BinaryEdit
private void numericUpDownBrightness_ValueChanged(object sender, EventArgs e)
{
Factor = numericUpDownBrightness.Value / 100.0m;
UpdatePreview();
trackBarBrightness.Scroll -= trackBarBrightness_Scroll;
trackBarBrightness.Value = (int)Math.Round(numericUpDownBrightness.Value, MidpointRounding.AwayFromZero);
trackBarBrightness.Scroll += trackBarBrightness_Scroll;
UpdatePreview();
}
}
}