shared-y: final review fixes

This commit is contained in:
Martino Ferrari committed 2026-11-04 01:14:36 +01:00
1 parent fa9f0c6da9
commit 03cb85e015
5 files changed
+16 -5

No files matched your search

+11 -1
View File
@@ -4473,6 +4473,11 @@ gboolean split_probe_step(gpointer user) {
const RowSet::Row& rb = rs.row(1);
if (ra.plot == nullptr || rb.plot == nullptr) {
std::fprintf(stderr, "[split-probe] shared-y no plots\n");
// Restore what step 22 restores, then chain on so the rest of the probe still runs.
rs.set_cursor_mode(g_shared_y.was_mode);
rs.set_cursors_visible(g_shared_y.was_on);
rebuild_cursors_pane(*a);
split_probe_next(*a);
break;
}
// 1. The range set on A is B's.
@@ -4513,7 +4518,12 @@ gboolean split_probe_step(gpointer user) {
case 22: {
const RowSet::Row& ra = rs.row(0);
const RowSet::Row& rb = rs.row(1);
if (ra.plot == nullptr || rb.plot == nullptr) break;
if (ra.plot == nullptr || rb.plot == nullptr) {
rs.set_cursor_mode(g_shared_y.was_mode);
rs.set_cursors_visible(g_shared_y.was_on);
rebuild_cursors_pane(*a);
break;
}
const plot::Range a_rng = ra.plot->y_range(ra.axis_y);
const plot::Range b_rng = rb.plot->y_range(rb.axis_y);
plot::Range da{};