]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decodetrace.cpp
LogicSignal: Added an icon cache
[pulseview.git] / pv / view / decodetrace.cpp
index 01bf934c47095003e3265420622344a6235dc92a..790589568582003b70f2ceb948a7803b4ae07fc1 100644 (file)
@@ -123,7 +123,7 @@ const QColor DecodeTrace::OutlineColours[16] = {
        QColor(0x6B, 0x23, 0x37)
 };
 
-DecodeTrace::DecodeTrace(pv::SigSession &session,
+DecodeTrace::DecodeTrace(pv::Session &session,
        std::shared_ptr<pv::data::DecoderStack> decoder_stack, int index) :
        Trace(QString::fromUtf8(
                decoder_stack->stack().front()->decoder()->name)),
@@ -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;
        }