X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.cpp;fp=pv%2Fview%2Fcursorheader.cpp;h=3e2944e09269304a823db91b49fe6ecaef06f2da;hp=3fa0b0c58793410cb579bba9136b0fe0e934d841;hb=361c560ed9ef67278916e086ed0b0649ae01b583;hpb=f65cd27bdbf70644052dd43dac4bbe9403f4dfee diff --git a/pv/view/cursorheader.cpp b/pv/view/cursorheader.cpp index 3fa0b0c5..3e2944e0 100644 --- a/pv/view/cursorheader.cpp +++ b/pv/view/cursorheader.cpp @@ -70,16 +70,13 @@ void CursorHeader::paintEvent(QPaintEvent*) QPainter p(this); p.setRenderHint(QPainter::Antialiasing); - unsigned int prefix = pv::view::Ruler::calculate_tick_spacing( - p, view_.scale(), view_.offset()).second; - // Draw the cursors if (view_.cursors_shown()) { // The cursor labels are not drawn with the arrows exactly on the // bottom line of the widget, because then the selection shadow // would be clipped away. const QRect r = rect().adjusted(0, 0, 0, -BaselineOffset); - view_.cursors().draw_markers(p, r, prefix); + view_.cursors().draw_markers(p, r); } }