From: Soeren Apel Date: Sat, 5 Aug 2017 20:38:45 +0000 (+0200) Subject: View: Update ruler after restoring session X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bca3faab89f727096f39a937aa5479f8eadc7740;p=pulseview.git 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. --- 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