]> sigrok.org Git - pulseview.git/commitdiff
AnalogSignal: Make sure the trace is redrawn when changing vdiv count
authorSoeren Apel <redacted>
Wed, 13 Apr 2016 18:17:53 +0000 (20:17 +0200)
committerSoeren Apel <redacted>
Wed, 13 Apr 2016 18:17:53 +0000 (20:17 +0200)
pv/view/analogsignal.cpp

index e0add7aaedc64e7a116ea2bc4229dd4e25ab6583..9001924a687f4f301e63c4fcc1bec24aae4d7b69 100644 (file)
@@ -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)