Fix app freeze when trying to select a point on an empty graph
This commit is contained in:
parent
8e0aed8970
commit
4276336832
@ -314,7 +314,10 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function markClosestPoint(point) {
|
function markClosestPoint(point) {
|
||||||
var found = false;
|
if (lineSeries1.count == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (lineSeries1.count == 1) {
|
if (lineSeries1.count == 1) {
|
||||||
selectedHighlights.removePoints(0, selectedHighlights.count)
|
selectedHighlights.removePoints(0, selectedHighlights.count)
|
||||||
selectedHighlights.append(lineSeries1.at(0).x, lineSeries1.at(1).y)
|
selectedHighlights.append(lineSeries1.at(0).x, lineSeries1.at(1).y)
|
||||||
|
|||||||
Reference in New Issue
Block a user