Skip to content

Commit

Permalink
fix(cpn): log viewer highlight selected data item (#5306)
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower authored Jul 18, 2024
1 parent 4597b7b commit d3ee484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions companion/src/logsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3ee484

Please sign in to comment.