hotfix: backward compatibility++

This commit is contained in:
Hermet Park 2024-09-30 17:49:35 +09:00 committed by Hermet Park
parent 08c333acd9
commit b995c33ac7

View file

@ -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;