From: Soeren Apel Date: Wed, 13 Apr 2016 18:17:53 +0000 (+0200) Subject: AnalogSignal: Make sure the trace is redrawn when changing vdiv count X-Git-Tag: pulseview-0.4.0~306 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=75d0779e498595f3a957de79eedd97c0647a2b28;p=pulseview.git AnalogSignal: Make sure the trace is redrawn when changing vdiv count --- diff --git a/pv/view/analogsignal.cpp b/pv/view/analogsignal.cpp index e0add7aa..9001924a 100644 --- a/pv/view/analogsignal.cpp +++ b/pv/view/analogsignal.cpp @@ -360,8 +360,11 @@ void AnalogSignal::on_vdivs_changed(int vdivs) { vdivs_ = vdivs; - if (owner_) + if (owner_) { + // Call order is important, otherwise the lazy event handler won't work owner_->extents_changed(false, true); + owner_->row_item_appearance_changed(false, true); + } } void AnalogSignal::on_resolution_changed(int index)