From: Soeren Apel Date: Tue, 18 Jul 2017 18:40:33 +0000 (+0200) Subject: TriggerMarker: Don't return "valid" drag point coordinates X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=963be49714665b5b12b29937875d432660ff4bc1;p=pulseview.git TriggerMarker: Don't return "valid" drag point coordinates --- diff --git a/pv/views/trace/triggermarker.cpp b/pv/views/trace/triggermarker.cpp index 2ef4b6ba..031bc5d9 100644 --- a/pv/views/trace/triggermarker.cpp +++ b/pv/views/trace/triggermarker.cpp @@ -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)