From 5bf3f978949d38a6f2de32df54c5f742a1b7fb98 Mon Sep 17 00:00:00 2001 From: Waldi Ravens Date: Wed, 27 May 2015 09:14:03 +0200 Subject: [PATCH] Use Utilities.FixLargeFonts (Forms/ShowHistory) --- src/Forms/ShowHistory.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Forms/ShowHistory.cs b/src/Forms/ShowHistory.cs index 506c24eab..be5fdb138 100644 --- a/src/Forms/ShowHistory.cs +++ b/src/Forms/ShowHistory.cs @@ -23,18 +23,7 @@ namespace Nikse.SubtitleEdit.Forms buttonCompareHistory.Text = Configuration.Settings.Language.ShowHistory.CompareHistoryItems; buttonRollback.Text = Configuration.Settings.Language.ShowHistory.Rollback; buttonCancel.Text = Configuration.Settings.Language.General.Cancel; - FixLargeFonts(); - } - - private void FixLargeFonts() - { - Graphics graphics = this.CreateGraphics(); - SizeF textSize = graphics.MeasureString(buttonRollback.Text, this.Font); - if (textSize.Height > buttonRollback.Height - 4) - { - int newButtonHeight = (int)(textSize.Height + 7 + 0.5); - Utilities.SetButtonHeight(this, newButtonHeight, 1); - } + Utilities.FixLargeFonts(this, buttonRollback); } public int SelectedIndex