summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-10-13 16:20:35 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-10-13 16:20:35 +0200
commit14efe700bee957ec285136aeb8970fb72fc16e8f (patch)
tree03166ea3581b3bd4d5a36c4cb65db87fad777f46 /components
parentc735c25674376e3c35d1ba3067e9c7463cfa25e3 (diff)
downloadfpGUI-14efe700bee957ec285136aeb8970fb72fc16e8f.tar.xz
margin width calculation is now fixed.
I used the Y size instead of the x size for margins. Oops. Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/richtext/CanvasFontManager.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/richtext/CanvasFontManager.pas b/components/richtext/CanvasFontManager.pas
index efc84e2e..7ef21561 100755
--- a/components/richtext/CanvasFontManager.pas
+++ b/components/richtext/CanvasFontManager.pas
@@ -835,7 +835,7 @@ begin
//Result.lMaxCharInc := FontInfo.lMaxCharInc;
Result.lMaxBaseLineExt := FontSpec.YSize;
Result.lAveCharWidth := FontSpec.XSize;
- Result.lMaxCharInc := FontSpec.YSize;
+ Result.lMaxCharInc := FontSpec.XSize;
// Set style flags
with Result do