From b995c33ac782b1e6d0faa1fa6c836d0283363e9a Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 30 Sep 2024 17:49:35 +0900 Subject: [PATCH] hotfix: backward compatibility++ --- src/renderer/tvgPaint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/tvgPaint.cpp b/src/renderer/tvgPaint.cpp index a0823028..8984204f 100644 --- a/src/renderer/tvgPaint.cpp +++ b/src/renderer/tvgPaint.cpp @@ -458,7 +458,7 @@ Result Paint::clip(std::unique_ptr clipper) noexcept Result Paint::composite(std::unique_ptr target, CompositeMethod method) noexcept { //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(); if (pImpl->composite(this, p, method)) return Result::Success;