mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
[Internal] - Break whenever comboboxSubtitleFontSize item is equal to subtitleFontSize
This commit is contained in:
parent
f8b1092507
commit
33c4a519bd
@ -2716,7 +2716,10 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
|
|||||||
foreach (string item in comboBoxSubtitleFontSize.Items)
|
foreach (string item in comboBoxSubtitleFontSize.Items)
|
||||||
{
|
{
|
||||||
if (item == Convert.ToInt32(_subtitleFontSize).ToString(CultureInfo.InvariantCulture))
|
if (item == Convert.ToInt32(_subtitleFontSize).ToString(CultureInfo.InvariantCulture))
|
||||||
|
{
|
||||||
comboBoxSubtitleFontSize.SelectedIndex = i;
|
comboBoxSubtitleFontSize.SelectedIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2727,7 +2730,10 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
|
|||||||
foreach (string item in comboBoxSubtitleFontSize.Items)
|
foreach (string item in comboBoxSubtitleFontSize.Items)
|
||||||
{
|
{
|
||||||
if (item == Convert.ToInt32(_subtitleFontSize).ToString(CultureInfo.InvariantCulture))
|
if (item == Convert.ToInt32(_subtitleFontSize).ToString(CultureInfo.InvariantCulture))
|
||||||
|
{
|
||||||
comboBoxSubtitleFontSize.SelectedIndex = i;
|
comboBoxSubtitleFontSize.SelectedIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user