Skip to content

Commit

Permalink
Fix null error when resetting font in designer
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetsait committed May 6, 2024
1 parent 402b641 commit 59b997f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scintilla.NET/Scintilla.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4738,6 +4738,7 @@ public override Font Font
set
{
var defaultFontStyle = Styles[Style.Default];
value = value ?? Parent?.Font ?? Control.DefaultFont;
defaultFontStyle.Font = value.Name;
defaultFontStyle.SizeF = value.Size;
defaultFontStyle.Bold = value.Bold;
Expand Down

0 comments on commit 59b997f

Please sign in to comment.