[Bug]: 双击测试报告内的曲线图,SP应用闪退

Signed-off-by: hanlibin <hanlibin3@huawei.com>
This commit is contained in:
hanlibin 2024-05-11 16:12:14 +08:00
parent 72a65fdd47
commit 913ddc1887

View File

@ -236,7 +236,14 @@ export class PathViewModel extends ScaleMode {
this.ondraw();
let maxXAfter: number = this.paintArry[this.paintArry.length - 1].x;
let maxXAfter: number = 0;
try {
if(this.paintArry.length > 0) {
maxXAfter = this.paintArry[this.paintArry.length - 1].x;
}
} catch(e) {
console.log(e);
}
let maxYAfter: number = Number.MIN_VALUE;
let minYAfter: number = Number.MAX_VALUE;