From d52e39e2770c6c04af116e78d57a10e1e76eca8b Mon Sep 17 00:00:00 2001 From: zhangwenbin Date: Tue, 15 Oct 2024 16:39:57 +0800 Subject: [PATCH] =?UTF-8?q?imageAnimator=E6=80=A7=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangwenbin --- .../pattern/image_animator/image_animator_pattern.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/core/components_ng/pattern/image_animator/image_animator_pattern.cpp b/frameworks/core/components_ng/pattern/image_animator/image_animator_pattern.cpp index c5c44cd8ae3..296cc6f256c 100644 --- a/frameworks/core/components_ng/pattern/image_animator/image_animator_pattern.cpp +++ b/frameworks/core/components_ng/pattern/image_animator/image_animator_pattern.cpp @@ -307,10 +307,10 @@ void ImageAnimatorPattern::OnModifyDone() CHECK_NULL_VOID(imageTheme); auto renderContext = host->GetRenderContext(); CHECK_NULL_VOID(renderContext); - if (!renderContext->HasBorderRadius()) { + if (!renderContext->HasBorderRadius() && imageTheme->GetCardRadius() > 0.0_vp) { renderContext->UpdateBorderRadius(BorderRadiusProperty(imageTheme->GetCardRadius())); } - if (!renderContext->HasClipEdge()) { + if (!renderContext->HasClipEdge() && imageTheme->GetClipEdge()) { renderContext->UpdateClipEdge(imageTheme->GetClipEdge()); }