Fix ruler double-click to add cursor in right position
authorjaseg <git@jaseg.net>
Sun, 9 Jun 2019 11:52:35 +0000 (20:52 +0900)
committerUwe Hermann <uwe@hermann-uwe.de>
Fri, 5 Jul 2019 20:49:08 +0000 (22:49 +0200)
pv/views/trace/ruler.cpp

index 5fa1be2..0917665 100644 (file)
@@ -197,7 +197,7 @@ shared_ptr<ViewItem> 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*)