summaryrefslogtreecommitdiff
path: root/docview/components/richtext
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-09-01 01:16:27 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-01 08:19:07 +0200
commitf84535971b1c6720830dfee137e14ed48a08b59a (patch)
treed66da816184aecc36099cb0e37d39c32947567ab /docview/components/richtext
parenta09cc1030473a6fd2d044e0d5e76a4885a66610c (diff)
downloadfpGUI-f84535971b1c6720830dfee137e14ed48a08b59a.tar.xz
docview: fixed unwanted linefeeds which were not in INF docs.
Diffstat (limited to 'docview/components/richtext')
-rw-r--r--docview/components/richtext/RichTextStyleUnit.pas11
1 files changed, 4 insertions, 7 deletions
diff --git a/docview/components/richtext/RichTextStyleUnit.pas b/docview/components/richtext/RichTextStyleUnit.pas
index 64612b0e..782889bd 100644
--- a/docview/components/richtext/RichTextStyleUnit.pas
+++ b/docview/components/richtext/RichTextStyleUnit.pas
@@ -271,7 +271,7 @@ ProfileEvent('DEBUG: ApplyStyleTag >>>');
if ( Tag.TagType = ttSetLeftMargin )
and ( MarginParam1 = 'here' ) then
begin
- Style.LeftMargin := X {div FontWidthPrecisionFactor};
+ Style.LeftMargin := X;
end
else
begin
@@ -296,8 +296,7 @@ ProfileEvent('DEBUG: ApplyStyleTag >>>');
NewMargin := MarginSize * FontManager.MaximumCharWidth;
msSpecifiedChar:
NewMargin := MarginSize
- * FontManager.CharWidth( Chr( Settings.MarginChar ) )
- div FontWidthPrecisionFactor;
+ * FontManager.CharWidth( Chr( Settings.MarginChar ) );
end;
end;
except
@@ -305,11 +304,9 @@ ProfileEvent('DEBUG: ApplyStyleTag >>>');
end;
if Tag.TagType = ttSetLeftMargin then
- Style.LeftMargin := Settings.Margins.Left
- + NewMargin
+ Style.LeftMargin := Settings.Margins.Left + NewMargin
else
- Style.RightMargin := Settings.Margins.Right
- + NewMargin;
+ Style.RightMargin := Settings.Margins.Right + NewMargin;
end;
tmpFontParts.Free;
end; { teSet[left|right]margin }