From 352ae0ff9b5bf0ee116a354fc88744f4327811a6 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Wed, 1 Jun 2022 16:27:05 +0800 Subject: [PATCH] fix: math trace draw wrong when sample rate changed --- DSView/pv/sigsession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DSView/pv/sigsession.cpp b/DSView/pv/sigsession.cpp index 70ffe64f..2349f50e 100755 --- a/DSView/pv/sigsession.cpp +++ b/DSView/pv/sigsession.cpp @@ -1574,7 +1574,7 @@ void SigSession::math_rebuild(bool enable,view::DsoSignal *dsoSig1, _math_trace = new view::MathTrace(enable, math_stack, dsoSig1, dsoSig2); if (_math_trace && _math_trace->enabled()) { - _math_trace->get_math_stack()->set_samplerate(_dev_inst->get_sample_rate()); + _math_trace->get_math_stack()->set_samplerate(_dso_data->samplerate()); _math_trace->get_math_stack()->realloc(_dev_inst->get_sample_limit()); _math_trace->get_math_stack()->calc_math(); }