fix(cpn): log viewer highlight selected data item (#5306)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user