]> sigrok.org Git - pulseview.git/blobdiff - pv/view/analogsignal.cpp
AnalogSignal: Make sure the trace is redrawn when changing vdiv count
[pulseview.git] / pv / view / analogsignal.cpp
index e0add7aaedc64e7a116ea2bc4229dd4e25ab6583..9001924a687f4f301e63c4fcc1bec24aae4d7b69 100644 (file)
@@ -360,8 +360,11 @@ void AnalogSignal::on_vdivs_changed(int vdivs)
 {
        vdivs_ = 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_->extents_changed(false, true);
+               owner_->row_item_appearance_changed(false, true);
+       }
 }
 
 void AnalogSignal::on_resolution_changed(int index)
 }
 
 void AnalogSignal::on_resolution_changed(int index)