From bca3faab89f727096f39a937aa5479f8eadc7740 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sat, 5 Aug 2017 22:38:45 +0200 Subject: [PATCH] View: Update ruler after restoring session If we don't do this, the ruler is out-of-sync with the rest of the view until the session is loaded and goes into stopped state. At that point, the ruler is updated, which is too late. --- pv/views/trace/view.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index bda056ac..ce78100f 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -356,6 +356,9 @@ void View::restore_settings(QSettings &settings) settings_restored_ = true; suppress_zoom_to_fit_after_acq_ = true; + + // Update the ruler so that it uses the new scale + calculate_tick_spacing(); } vector< shared_ptr > View::time_items() const -- 2.30.2