From: Joel Holdsworth Date: Sat, 22 Nov 2014 15:03:16 +0000 (+0000) Subject: DecodeTrace: Don't attempt to hover if the trace hasn't been painted yet X-Git-Tag: pulseview-0.3.0~433 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8b9df0ad2eca9048757cda9207bf1f0e5ad5b978;p=pulseview.git DecodeTrace: Don't attempt to hover if the trace hasn't been painted yet --- diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 01bf934c..6947491a 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -609,9 +609,8 @@ void DecodeTrace::hover_point_changed() QString ann = get_annotation_at_point(hp); assert(view); - assert(row_height_); - if (ann.isEmpty()) { + if (!row_height_ || ann.isEmpty()) { hide_hover_annotation(); return; }