diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-05-22 14:57:02 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-05-22 14:57:02 +0000 |
commit | 479a7c6705ccfbaaf182489d555f92f66a546a94 (patch) | |
tree | d805019d94c439ca1f97f9e539a6dbf4e38f0f73 /src/corelib | |
parent | caddcbd0b867032e9d8be9c40a8be237f7c6af17 (diff) | |
download | fpGUI-479a7c6705ccfbaaf182489d555f92f66a546a94.tar.xz |
* Minor bugfix in gui_customgrid.
* Minor bugfix in x11 backend and TextWidth calculation.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/x11/gfx_x11.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas index bb0097f4..7b08f151 100644 --- a/src/corelib/x11/gfx_x11.pas +++ b/src/corelib/x11/gfx_x11.pas @@ -1699,7 +1699,7 @@ begin end; // Xft uses smallint to return text extent information, so we have to // check if the text width is small enough to fit into smallint range - if DoGetTextWidthClassic('W') * Length(txt) < High(smallint) then + if DoGetTextWidthClassic('W') * UTF8Length(txt) < High(smallint) then Result := DoGetTextWidthClassic(txt) else Result := DoGetTextWidthWorkaround(txt); |