mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
Added null check in Paint::Impl:clip
issue: https://github.com/thorvg/thorvg/issues/3404
This commit is contained in:
parent
0c259b41f4
commit
feda6bcbc2
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ namespace tvg
|
||||||
|
|
||||||
Result clip(Paint* clp)
|
Result clip(Paint* clp)
|
||||||
{
|
{
|
||||||
if (PAINT(clp)->parent) return Result::InsufficientCondition;
|
if (clp && PAINT(clp)->parent) return Result::InsufficientCondition;
|
||||||
if (clipper) PAINT(clipper)->unref(clipper != clp);
|
if (clipper) PAINT(clipper)->unref(clipper != clp);
|
||||||
clipper = clp;
|
clipper = clp;
|
||||||
if (clp) {
|
if (clp) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue