mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
common canvas: ++ exception handling.
canvas update won't be performed if it's on drawing condition nor zero paints.
This commit is contained in:
parent
85587bbe79
commit
4acf89cf96
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ struct Canvas::Impl
|
|||
|
||||
Result update(Paint* paint, bool force)
|
||||
{
|
||||
if (!renderer) return Result::InsufficientCondition;
|
||||
if (paints.count == 0 || drawing || !renderer) return Result::InsufficientCondition;
|
||||
|
||||
Array<RenderData> clips;
|
||||
auto flag = RenderUpdateFlag::None;
|
||||
|
|
Loading…
Add table
Reference in a new issue