From: Soeren Apel Date: Wed, 20 Apr 2016 16:27:29 +0000 (+0200) Subject: DecodeTrace: Let the view know when we need more space X-Git-Tag: pulseview-0.4.0~300 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a303c2d88f424fa7d548d74b335965ce29154166;p=pulseview.git DecodeTrace: Let the view know when we need more space --- diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 9e41bc4a..c2369e86 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -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()); }