From 7b06241153769185f08fc6adf60a76dc320b5cfb Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Sat, 23 Jul 2011 22:42:36 +0200 Subject: docview: FontNameSize has a duplicate font size element The global variable DefaultTopicFont already contained the font size, so we didn't need to append it. --- docview/components/richtext/RichTextStyleUnit.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docview/components/richtext') diff --git a/docview/components/richtext/RichTextStyleUnit.pas b/docview/components/richtext/RichTextStyleUnit.pas index ade745e6..20c03de3 100644 --- a/docview/components/richtext/RichTextStyleUnit.pas +++ b/docview/components/richtext/RichTextStyleUnit.pas @@ -299,7 +299,7 @@ end; function GetDefaultStyle( const Settings: TRichTextSettings ): TTextDrawStyle; begin FillChar(Result, SizeOf(TTextDrawStyle), 0); - Result.FontNameSize := DefaultTopicFont + '-10'; + Result.FontNameSize := DefaultTopicFont; Result.FontAttributes := []; Result.Alignment := Settings.FDefaultAlignment; Result.Wrap := Settings.FDefaultWrap; -- cgit v1.2.3-70-g09d2