Use Utilities.FixLargeFonts (Forms/MergeShortLines)

This commit is contained in:
Waldi Ravens 2015-05-27 10:24:56 +02:00
parent 1e3eb2f0b5
commit 72194c3ae7

View File

@ -19,18 +19,7 @@ namespace Nikse.SubtitleEdit.Forms
public MergeShortLines()
{
InitializeComponent();
FixLargeFonts();
}
private void FixLargeFonts()
{
var graphics = CreateGraphics();
var textSize = graphics.MeasureString(buttonOK.Text, Font);
if (textSize.Height > buttonOK.Height - 4)
{
int newButtonHeight = (int)(textSize.Height + 7 + 0.5);
Utilities.SetButtonHeight(this, newButtonHeight, 1);
}
Utilities.FixLargeFonts(this, buttonOK);
}
public Subtitle MergedSubtitle