summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docview/components/richtext/RichTextStyleUnit.pas3
1 files changed, 1 insertions, 2 deletions
diff --git a/docview/components/richtext/RichTextStyleUnit.pas b/docview/components/richtext/RichTextStyleUnit.pas
index cf5e8a7e..7effc5ee 100644
--- a/docview/components/richtext/RichTextStyleUnit.pas
+++ b/docview/components/richtext/RichTextStyleUnit.pas
@@ -329,8 +329,7 @@ end;
function GetDefaultStyle( const ASettings: TRichTextSettings ): TTextDrawStyle;
begin
FillChar(Result, SizeOf(TTextDrawStyle), 0);
- { Note: this references the user Settings and not the parameter ASettings }
- Result.FontNameSize := Settings.NormalFontDesc;
+ Result.FontNameSize := ASettings.NormalFont.FontDesc;
Result.FontAttributes := [];
Result.Alignment := ASettings.FDefaultAlignment;
Result.Wrap := ASettings.FDefaultWrap;