mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Fix related to #2853
This commit is contained in:
parent
518f319ecb
commit
b03a8ce896
@ -467,8 +467,16 @@ namespace Nikse.SubtitleEdit.Forms.Styles
|
||||
else
|
||||
panelOutlineColor.BackColor = style.Outline;
|
||||
panelBackColor.BackColor = style.Background;
|
||||
numericUpDownOutline.Value = style.OutlineWidth;
|
||||
numericUpDownShadowWidth.Value = style.ShadowWidth;
|
||||
|
||||
if (style.OutlineWidth >= 0 && style.OutlineWidth <= numericUpDownOutline.Maximum)
|
||||
numericUpDownOutline.Value = style.OutlineWidth;
|
||||
else
|
||||
numericUpDownOutline.Value = 2;
|
||||
|
||||
if (style.ShadowWidth >= 0 && style.ShadowWidth <= numericUpDownShadowWidth.Maximum)
|
||||
numericUpDownShadowWidth.Value = style.ShadowWidth;
|
||||
else
|
||||
numericUpDownShadowWidth.Value = 1;
|
||||
|
||||
if (_isSubStationAlpha)
|
||||
{
|
||||
|
@ -2,7 +2,6 @@
|
||||
using Nikse.SubtitleEdit.Core.SubtitleFormats;
|
||||
using Nikse.SubtitleEdit.Logic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Text;
|
||||
@ -796,8 +795,16 @@ namespace Nikse.SubtitleEdit.Forms.Styles
|
||||
else
|
||||
panelOutlineColor.BackColor = style.Outline;
|
||||
panelBackColor.BackColor = style.Background;
|
||||
numericUpDownOutline.Value = style.OutlineWidth;
|
||||
numericUpDownShadowWidth.Value = style.ShadowWidth;
|
||||
|
||||
if (style.OutlineWidth >= 0 && style.OutlineWidth <= numericUpDownOutline.Maximum)
|
||||
numericUpDownOutline.Value = style.OutlineWidth;
|
||||
else
|
||||
numericUpDownOutline.Value = 2;
|
||||
|
||||
if (style.ShadowWidth >= 0 && style.ShadowWidth <= numericUpDownShadowWidth.Maximum)
|
||||
numericUpDownShadowWidth.Value = style.ShadowWidth;
|
||||
else
|
||||
numericUpDownShadowWidth.Value = 1;
|
||||
|
||||
if (_isSubStationAlpha)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user