X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.cpp;h=bf31a72ac05adaee19ee78e6d54b1c9f3bc09191;hb=30677c1392b54604b01558cf29b44572731659fc;hp=bc309a738d8d82ee6f0341c3d301ec5a0119c0e9;hpb=5ecf957f9f58abc2372b0214333d3491477c1b4d;p=pulseview.git diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index bc309a7..bf31a72 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -220,7 +220,7 @@ void DecodeTrace::paint_mid(QPainter &p, ViewItemPaintParams &pp) int row_title_width; try { row_title_width = row_title_widths_.at(row); - } catch (out_of_range) { + } catch (out_of_range&) { const int w = p.boundingRect(QRectF(), 0, row.title()).width() + RowTitleMargin; row_title_widths_[row] = w; @@ -236,7 +236,7 @@ void DecodeTrace::paint_mid(QPainter &p, ViewItemPaintParams &pp) vector annotations; decode_signal_->get_annotation_subset(annotations, row, - sample_range.first, sample_range.second); + current_segment_, sample_range.first, sample_range.second); if (!annotations.empty()) { draw_annotations(annotations, p, annotation_height, pp, y, base_colour, row_title_width); @@ -706,7 +706,7 @@ const QString DecodeTrace::get_annotation_at_point(const QPoint &point) vector annotations; decode_signal_->get_annotation_subset(annotations, visible_rows_[row], - sample_range.first, sample_range.second); + current_segment_, sample_range.first, sample_range.second); return (annotations.empty()) ? QString() : annotations[0].annotations().front();