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
1 changed files with 2 additions and 2 deletions

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;