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 == NULL) item = rightLegend->itemWithPlottable(graph);
|
||||||
if (item->selected() || graph->selected()) {
|
if (item->selected() || graph->selected()) {
|
||||||
item->setSelected(true);
|
item->setSelected(true);
|
||||||
graph->setSelection(QCPDataSelection(QCPDataRange()));
|
graph->setSelection(QCPDataSelection(graph->data()->dataRange()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -891,7 +891,7 @@ void LogsDialog::plotLogs()
|
|||||||
.toTime_t();
|
.toTime_t();
|
||||||
}
|
}
|
||||||
plotCoords.x.push_back(time);
|
plotCoords.x.push_back(time);
|
||||||
|
|
||||||
if(plots.min_x == INVALID_MIN)
|
if(plots.min_x == INVALID_MIN)
|
||||||
plots.min_x = time;
|
plots.min_x = time;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user