]> sigrok.org Git - pulseview.git/commitdiff
TraceTreeItem: Added valid owner assert to drag_by
authorJoel Holdsworth <redacted>
Sun, 30 Aug 2015 14:42:41 +0000 (08:42 -0600)
committerJoel Holdsworth <redacted>
Sun, 18 Oct 2015 21:32:29 +0000 (15:32 -0600)
pv/view/tracetreeitem.cpp

index fa11e292a7a2ae655fb36502db6fa5ec80cdbeb5..89bf466788224bb2518abc2fb3f3c9370e11ce6c 100644 (file)
@@ -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());
 }