summaryrefslogtreecommitdiff
path: root/docview/components/richtext
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-23 22:42:36 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-23 22:42:36 +0200
commit7b06241153769185f08fc6adf60a76dc320b5cfb (patch)
treeb1baddf91a62ea9a4972197b6bcec97eb7513a49 /docview/components/richtext
parentd2d9660e01e653f62f15d73e52f5b92470863acd (diff)
downloadfpGUI-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.pas2
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;