X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftrace.cpp;h=166fc1abc6831beb966adf001f7bdc92024a1356;hp=3b92abe484c14efd5964789eed731077fed21344;hb=be9e7b4bb29b6594ec2b64442748ab135b684bf8;hpb=1dc835a4b49104f5b4c9695e91e6ffb7a48d7c23 diff --git a/pv/view/trace.cpp b/pv/view/trace.cpp index 3b92abe4..166fc1ab 100644 --- a/pv/view/trace.cpp +++ b/pv/view/trace.cpp @@ -70,7 +70,7 @@ void Trace::set_colour(QColor colour) void Trace::paint_label(QPainter &p, int right, bool hover) { - const int y = get_y(); + const int y = get_visual_y(); p.setBrush(_colour); @@ -157,7 +157,7 @@ QRectF Trace::label_rect(int right) const const float half_height = label_size.height() / 2; return QRectF( right - half_height - label_size.width() - 0.5, - get_y() + 0.5f - half_height, + get_visual_y() + 0.5f - half_height, label_size.width() + half_height, label_size.height()); }