X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.cpp;h=2835750b9647bcd2a5fd41a490cb13dadbafb7db;hb=689dea92f288564260ef521f6f499e03e3cdbbd2;hp=076b2a7fc2ecd677ea12b99e16d08f7f3f1c2910;hpb=b3f44329f5846bfb800ee53c15c65b2395d3ba0c;p=pulseview.git diff --git a/pv/view/cursorheader.cpp b/pv/view/cursorheader.cpp index 076b2a7..2835750 100644 --- a/pv/view/cursorheader.cpp +++ b/pv/view/cursorheader.cpp @@ -108,10 +108,10 @@ void CursorHeader::mousePressEvent(QMouseEvent *e) if (view_.cursors_shown()) { shared_ptr cursors(view_.cursors()); - if (cursors->first()->get_label_rect( + if (cursors->first()->label_rect( rect()).contains(e->pos())) grabbed_marker_ = cursors->first(); - else if (cursors->second()->get_label_rect( + else if (cursors->second()->label_rect( rect()).contains(e->pos())) grabbed_marker_ = cursors->second(); }