diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-07-23 22:42:36 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-07-23 22:42:36 +0200 |
commit | 7b06241153769185f08fc6adf60a76dc320b5cfb (patch) | |
tree | b1baddf91a62ea9a4972197b6bcec97eb7513a49 /docview/components/richtext | |
parent | d2d9660e01e653f62f15d73e52f5b92470863acd (diff) | |
download | fpGUI-7b06241153769185f08fc6adf60a76dc320b5cfb.tar.xz |
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.
Diffstat (limited to 'docview/components/richtext')
-rw-r--r-- | docview/components/richtext/RichTextStyleUnit.pas | 2 |
1 files changed, 1 insertions, 1 deletions
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; |