]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Don't attempt to hover if the trace hasn't been painted yet
authorJoel Holdsworth <redacted>
Sat, 22 Nov 2014 15:03:16 +0000 (15:03 +0000)
committerJoel Holdsworth <redacted>
Sat, 22 Nov 2014 15:15:55 +0000 (15:15 +0000)
pv/view/decodetrace.cpp

index 01bf934c47095003e3265420622344a6235dc92a..6947491a285ead6b3317e166e4ca645354d627c6 100644 (file)
@@ -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;
        }