diff options
Diffstat (limited to 'src/corelib/x11/gfx_x11.pas')
-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); |