]> sigrok.org Git - pulseview.git/commitdiff
Fix ruler double-click to add cursor in right position
authorjaseg <redacted>
Sun, 9 Jun 2019 11:52:35 +0000 (20:52 +0900)
committerUwe Hermann <redacted>
Fri, 5 Jul 2019 20:49:08 +0000 (22:49 +0200)
pv/views/trace/ruler.cpp

index 5fa1be2fc4326e2eb5728c6a27035023315ace54..09176659b55b06cb807b3157578f78051fe552bb 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*)