mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-27 08:36:59 +00:00
capi binding: added missing null paint check (#616)
This commit is contained in:
parent
30a3d442b9
commit
dc516df9d8
1 changed files with 1 additions and 0 deletions
|
@ -265,6 +265,7 @@ TVG_EXPORT Tvg_Result tvg_shape_append_arc(Tvg_Paint* paint, float cx, float cy,
|
|||
|
||||
TVG_EXPORT Tvg_Result tvg_shape_append_circle(Tvg_Paint* paint, float cx, float cy, float rx, float ry)
|
||||
{
|
||||
if (!paint) return TVG_RESULT_INVALID_ARGUMENT;
|
||||
return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendCircle(cx, cy, rx, ry);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue