X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fcursor.cpp;h=071967998eac0047d894bca3e8edf712af736878;hp=03df054304f698132120674363f30d0753f5dde9;hb=f3d66e52ed6b454ea7a0662d5e6367e230116a2b;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/view/cursor.cpp b/pv/view/cursor.cpp index 03df0543..07196799 100644 --- a/pv/view/cursor.cpp +++ b/pv/view/cursor.cpp @@ -74,12 +74,13 @@ QRectF Cursor::get_label_rect(const QRect &rect) const label_size.width(), height); } -void Cursor::paint_label(QPainter &p, const QRect &rect, - unsigned int prefix) +void Cursor::paint_label(QPainter &p, const QRect &rect) { const shared_ptr other(get_other_cursor()); assert(other); + const unsigned int prefix = view_.tick_prefix(); + compute_text_size(p, prefix); const QRectF r(get_label_rect(rect));