From: jaseg Date: Sun, 9 Jun 2019 11:52:35 +0000 (+0900) Subject: Fix ruler double-click to add cursor in right position X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b0319e16359db3911e14bd95290caa4fda703201;p=pulseview.git Fix ruler double-click to add cursor in right position --- diff --git a/pv/views/trace/ruler.cpp b/pv/views/trace/ruler.cpp index 5fa1be2f..09176659 100644 --- a/pv/views/trace/ruler.cpp +++ b/pv/views/trace/ruler.cpp @@ -197,7 +197,7 @@ shared_ptr Ruler::get_mouse_over_item(const QPoint &pt) void Ruler::mouseDoubleClickEvent(QMouseEvent *event) { - view_.add_flag(get_ruler_time_from_x_pos(event->x())); + view_.add_flag(get_absolute_time_from_x_pos(event->x())); } void Ruler::paintEvent(QPaintEvent*)