DtHelp: keep processing even when some fonts are missing.
This commit is contained in:
parent
75280cc25b
commit
ec433c3eaa
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue