common: fix rendering failure

In case of a problem with loading font data, there
is no paint inside a text that can be rendered,
but this should not interrupt the rendering process
of other paints. Now fixed.

@Issue: https://github.com/thorvg/thorvg/issues/2468
This commit is contained in:
Mira Grudzinska 2024-06-26 19:37:07 +02:00 committed by Hermet Park
parent 9cfc65fbc7
commit adbf1d3cab
2 changed files with 63 additions and 1 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -100,7 +100,7 @@ struct Text::Impl
bool render(RenderMethod* renderer) bool render(RenderMethod* renderer)
{ {
if (paint) return PP(paint)->render(renderer); if (paint) return PP(paint)->render(renderer);
return false; return true;
} }
bool load() bool load()