summaryrefslogtreecommitdiff
path: root/src/corelib/x11/gfx_x11.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-22 14:57:02 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-22 14:57:02 +0000
commit479a7c6705ccfbaaf182489d555f92f66a546a94 (patch)
treed805019d94c439ca1f97f9e539a6dbf4e38f0f73 /src/corelib/x11/gfx_x11.pas
parentcaddcbd0b867032e9d8be9c40a8be237f7c6af17 (diff)
downloadfpGUI-479a7c6705ccfbaaf182489d555f92f66a546a94.tar.xz
* Minor bugfix in gui_customgrid.
* Minor bugfix in x11 backend and TextWidth calculation.
Diffstat (limited to 'src/corelib/x11/gfx_x11.pas')
-rw-r--r--src/corelib/x11/gfx_x11.pas2
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);