提交 5b6b3da3 编写于 作者: S swx1094762 提交者: 施其昌

fixed eb2d2cc5 from https://gitee.com/shi-qichang/graphic_ui/pulls/889

Description:弧形进度条组件进度为0时,不应显示进度球
issuesno:#I6F5I9
Sig:SIG_ApplicationFramework
Feature or Bugfix:Feature
Binary Source:NO
Signed-off-by: Nswx1094762 <shiqichang@huawei.com>
上级 e1e9b286
......@@ -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.
先完成此消息的编辑!
想要评论请 注册