mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
hotfix: backward compatibility++
This commit is contained in:
parent
08c333acd9
commit
b995c33ac7
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ Result Paint::clip(std::unique_ptr<Paint> clipper) noexcept
|
||||||
Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept
|
Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept
|
||||||
{
|
{
|
||||||
//TODO: remove. Keep this for the backward compatibility
|
//TODO: remove. Keep this for the backward compatibility
|
||||||
if (method == CompositeMethod::ClipPath) return clip(std::move(target));
|
if (target && method == CompositeMethod::ClipPath) return clip(std::move(target));
|
||||||
|
|
||||||
auto p = target.release();
|
auto p = target.release();
|
||||||
if (pImpl->composite(this, p, method)) return Result::Success;
|
if (pImpl->composite(this, p, method)) return Result::Success;
|
||||||
|
|
Loading…
Add table
Reference in a new issue