]> sigrok.org Git - pulseview.git/commitdiff
Fix #1212 by not resetting the cursors pointer
authorBrian Starkey <redacted>
Fri, 1 Jun 2018 17:33:08 +0000 (18:33 +0100)
committerUwe Hermann <redacted>
Sun, 3 Jun 2018 17:02:28 +0000 (19:02 +0200)
Calling cursors_.reset() effectively drops the CursorPair, meaning they
can never be used. Remove that.

pv/views/trace/view.cpp

index d559b0af5f6bcde346d3cef0b84f31fd80278505..2837e57fae3332e84ade1bfe8a50dd28c4acab12 100644 (file)
@@ -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