cabana: fix gaps in step line between chunks (#27447)

old-commit-hash: ce3e9d5649
This commit is contained in:
Dean Lee
2023-02-28 07:51:23 +08:00
committed by GitHub
parent 4621839a66
commit f78b0d0a8a

View File

@@ -552,7 +552,12 @@ void ChartView::updateSeries(const Signal *sig, const std::vector<Event *> *even
});
for (auto &c : chunks) {
s.vals.append(c.vals);
s.step_vals.append(c.step_vals);
if (!c.step_vals.empty()) {
if (!s.step_vals.empty()) {
s.step_vals.append({c.step_vals.first().x(), s.step_vals.back().y()});
}
s.step_vals.append(c.step_vals);
}
}
if (events->size()) {
s.last_value_mono_time = events->back()->mono_time;