1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 03:32:24 +00:00

DtHelp: keep processing even when some fonts are missing.

This commit is contained in:
Liang Chang 2022-01-23 08:00:09 +08:00
parent 75280cc25b
commit ec433c3eaa

View file

@ -109,8 +109,8 @@ _DtCvGetStringWidth (
result = (*(canvas->virt_functions.get_width)) (
canvas->client_data, _DtCvSTRING_TYPE,
(_DtCvPointer) &strInfo);
if (result < 0)
result = 0;
if (result <= 0)
result = 1;
return result;