未验证 提交 a3ad1225 编写于 作者: O openharmony_ci 提交者: Gitee

!889 弧形进度条组件进度为0时,不应显示进度球

Merge pull request !889 from 施其昌/master
......@@ -107,7 +107,7 @@ void UICircleProgress::DrawCommonCircle(BufferInfo& gfxDstBuffer, const Rect& in
backgroundStyle_->lineCap_);
}
if ((startAngle != endAngle) || (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) {
if ((startAngle != endAngle) && (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) {
arcinfo.imgPos.x = progressImagePos_.x + rect.GetLeft();
arcinfo.imgPos.y = progressImagePos_.y + rect.GetTop();
arcinfo.startAngle = startAngle;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册