projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement LogicSegment::get_surrounding_edges() and use it
[pulseview.git]
/
pv
/
views
/
trace
/
analogsignal.cpp
diff --git
a/pv/views/trace/analogsignal.cpp
b/pv/views/trace/analogsignal.cpp
index 2a2e2305b1b7e9b05c6ab4ed0240c7e61d010bcc..ac5e83c834880f4e85f5f9fd2c8203ebf017301b 100644
(file)
--- 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),
neg_vdivs_(1),
resolution_(0),
display_type_(DisplayBoth),
- autoranging_(true)
+ autoranging_(true),
+ value_at_hover_pos_(std::numeric_limits<float>::quiet_NaN())
{
axis_pen_ = AxisPen;
{
axis_pen_ = AxisPen;
@@
-1013,7
+1014,7
@@
void AnalogSignal::hover_point_changed(const QPoint &hp)
} else {
try {
value_at_hover_pos_ = value_at_pixel_pos_.at(hp.x());
} else {
try {
value_at_hover_pos_ = value_at_pixel_pos_.at(hp.x());
- } catch (out_of_range) {
+ } catch (out_of_range
&
) {
value_at_hover_pos_ = std::numeric_limits<float>::quiet_NaN();
}
}
value_at_hover_pos_ = std::numeric_limits<float>::quiet_NaN();
}
}