]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Let the view know when we need more space
authorSoeren Apel <redacted>
Wed, 20 Apr 2016 16:27:29 +0000 (18:27 +0200)
committerSoeren Apel <redacted>
Tue, 3 May 2016 19:11:40 +0000 (21:11 +0200)
pv/view/decodetrace.cpp

index 9e41bc4ac1f515f0a457ce2bff384820b040447e..c2369e866fbe3b7286c602adc41735ed1c6a579b 100644 (file)
@@ -245,6 +245,9 @@ void DecodeTrace::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
        // Draw the hatching
        draw_unresolved_period(p, annotation_height, pp.left(), pp.right());
 
+       if ((int)visible_rows_.size() > max_visible_rows_)
+               owner_->extents_changed(false, true);
+
        // Update the maximum row count if needed
        max_visible_rows_ = std::max(max_visible_rows_, (int)visible_rows_.size());
 }