fix(cpn): log viewer highlight selected data item (#5306)

This commit is contained in:
Neil Horne
2024-07-18 17:33:16 +10:00
committed by GitHub
parent 4597b7bced
commit d3ee484ce8
+2 -2
View File
@@ -243,7 +243,7 @@ void LogsDialog::selectionChanged()
if (item == NULL) item = rightLegend->itemWithPlottable(graph);
if (item->selected() || graph->selected()) {
item->setSelected(true);
graph->setSelection(QCPDataSelection(QCPDataRange()));
graph->setSelection(QCPDataSelection(graph->data()->dataRange()));
}
}
}
@@ -891,7 +891,7 @@ void LogsDialog::plotLogs()
.toTime_t();
}
plotCoords.x.push_back(time);
if(plots.min_x == INVALID_MIN)
plots.min_x = time;
else