提交 ef046126 编写于 作者: S shiqichang

Description:The UIChart control fills the part of the depth curve with ghosts when sliding

Sig:SIG_ApplicationFramework
Feature or Bugfix:Feature
Binary Source:NO
Signed-off-by: Nshiqichang <shiqichang@huawei.com>
上级 0b332302
......@@ -689,10 +689,23 @@ void UIChartPolyline::FindCrossPoints(const ChartLine& line, const ChartLine& po
{
if (GetLineCrossPoint(line.start, line.end, polyLine.start, polyLine.end, cross.nextFirst)) {
if (enableReverse_ && (MATH_MIN(line.start.y, line.end.y) >= MATH_MAX(polyLine.start.y, polyLine.end.y))) {
cross.firstFind = true;
if (!cross.firstFind) {
if (polyLine.start.y < polyLine.end.y) {
cross.first = cross.nextFirst;
cross.firstFind = false;
}
} else if (!cross.secondFind) {
if ((cross.first.x != cross.nextFirst.x) || (cross.first.y != cross.nextFirst.y)) {
cross.second = cross.nextFirst;
cross.secondFind = true;
return;
}
if (polyLine.start.y > polyLine.end.y) {
cross.firstFind = true;
}
}
return;
}
if (!cross.firstFind) {
/* first corss must on the line like "/" */
if (polyLine.start.y < polyLine.end.y) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册