From: Soeren Apel Date: Mon, 20 Aug 2018 13:57:33 +0000 (+0200) Subject: AnalogSignal: Set initial value for the "value at cursor" variable X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=82e7f4b3f640b6f8bfbd094e478cbe344cc8fc11;p=pulseview.git AnalogSignal: Set initial value for the "value at cursor" variable Without this, the analog traces show random values after startup until the mouse cursor enters the application window and the cursor position updates. --- diff --git a/pv/views/trace/analogsignal.cpp b/pv/views/trace/analogsignal.cpp index 0994d92e..ac5e83c8 100644 --- a/pv/views/trace/analogsignal.cpp +++ b/pv/views/trace/analogsignal.cpp @@ -109,7 +109,8 @@ AnalogSignal::AnalogSignal( neg_vdivs_(1), resolution_(0), display_type_(DisplayBoth), - autoranging_(true) + autoranging_(true), + value_at_hover_pos_(std::numeric_limits::quiet_NaN()) { axis_pen_ = AxisPen;