Skip to content

Commit

Permalink
fix cant adjust splitter when comic sans
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Jan 24, 2025
1 parent b4a45e7 commit e879a4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UAssetGUI/UAGPalette.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ private static void RefreshAllButtonsInControl(this Control ctrl, out bool needR

if (IsComicSans())
{
needRefreshForComicSans = true;
if (oldFontSettings == null) oldFontSettings = new Dictionary<Control, Font>();
if (ctrl2.Font.FontFamily.Name != "Comic Sans MS") oldFontSettings[ctrl2] = ctrl2.Font;
if (ctrl2.Font.FontFamily.Name != "Comic Sans MS")
{
oldFontSettings[ctrl2] = ctrl2.Font;
needRefreshForComicSans = true;
}
ctrl2.Font = new Font("Comic Sans MS", ctrl2.Font.Size, ctrl2.Font.Style);
}
else if (oldFontSettings != null)
Expand Down

0 comments on commit e879a4d

Please sign in to comment.