diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-13 16:20:35 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-13 16:20:35 +0200 |
commit | 14efe700bee957ec285136aeb8970fb72fc16e8f (patch) | |
tree | 03166ea3581b3bd4d5a36c4cb65db87fad777f46 /components | |
parent | c735c25674376e3c35d1ba3067e9c7463cfa25e3 (diff) | |
download | fpGUI-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-x | components/richtext/CanvasFontManager.pas | 2 |
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 |