From: Brian Starkey Date: Fri, 1 Jun 2018 17:33:08 +0000 (+0100) Subject: Fix #1212 by not resetting the cursors pointer X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ba804ad012807c3c689bf696e9885d1dff559e7b;p=pulseview.git Fix #1212 by not resetting the cursors pointer Calling cursors_.reset() effectively drops the CursorPair, meaning they can never be used. Remove that. --- diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index d559b0af..2837e57f 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -246,7 +246,6 @@ void View::reset_view_state() suppress_zoom_to_fit_after_acq_ = false; show_cursors_ = false; - cursors_.reset(); flags_.clear(); // Update the zoom state