]> sigrok.org Git - pulseview.git/commitdiff
TriggerMarker: Don't return "valid" drag point coordinates
authorSoeren Apel <redacted>
Tue, 18 Jul 2017 18:40:33 +0000 (20:40 +0200)
committerSoeren Apel <redacted>
Sat, 22 Jul 2017 19:42:50 +0000 (21:42 +0200)
pv/views/trace/triggermarker.cpp

index 2ef4b6badf8663b877b8a693977ee96935954437..031bc5d9d3cb9a03d86eb5dc4736b78c66ef87e0 100644 (file)
@@ -62,7 +62,10 @@ float TriggerMarker::get_x() const
 
 QPoint TriggerMarker::drag_point(const QRect &rect) const
 {
-       return QPoint(get_x(), rect.bottom());
+       (void)rect;
+
+       // The trigger marker cannot be moved, so there is no drag point
+       return QPoint(INT_MIN, INT_MIN);
 }
 
 void TriggerMarker::paint_fore(QPainter &p, ViewItemPaintParams &pp)