Show ruler timestamps in cursors and popups
[pulseview.git] / pv / views / trace / cursor.cpp
index 7a375c7aad49410450c5f41f0d6d8c949e6bcd38..c218440e31eae87f04f482c448a7a0b150216f4a 100644 (file)
@@ -59,7 +59,8 @@ QString Cursor::get_text() const
        const pv::util::Timestamp& diff = abs(time_ - other->time_);
 
        return Ruler::format_time_with_distance(
-               diff, time_, view_.tick_prefix(), view_.time_unit(), view_.tick_precision());
+               diff, view_.absolute_to_ruler_time(time_),
+        view_.tick_prefix(), view_.time_unit(), view_.tick_precision());
 }
 
 QRectF Cursor::label_rect(const QRectF &rect) const