mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
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:
parent
9cfc65fbc7
commit
adbf1d3cab
2 changed files with 63 additions and 1 deletions
62
examples/resources/svg/thanks.svg
Normal file
62
examples/resources/svg/thanks.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 17 KiB |
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue