From: Joel Holdsworth Date: Sun, 30 Aug 2015 14:42:41 +0000 (-0600) Subject: TraceTreeItem: Added valid owner assert to drag_by X-Git-Tag: pulseview-0.3.0~88 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f1a7311612c1289a672074cccca2ce72daf924eb;p=pulseview.git TraceTreeItem: Added valid owner assert to drag_by --- diff --git a/pv/view/tracetreeitem.cpp b/pv/view/tracetreeitem.cpp index fa11e292..89bf4667 100644 --- a/pv/view/tracetreeitem.cpp +++ b/pv/view/tracetreeitem.cpp @@ -122,6 +122,7 @@ int TraceTreeItem::get_visual_y() const void TraceTreeItem::drag_by(const QPoint &delta) { + assert(owner_); force_to_v_offset(drag_point_.y() + delta.y() - owner_->owner_visual_v_offset()); }