Bug fix: curve point tracker not always on top of all curves

This commit is contained in:
Ruben Thoms authored and Magne Sjaastad committed 2020-10-19 05:14:57 -04:00
1 parent 08b4fec678
commit 69a2bc673a
1 file changed
+4
@@ -45,6 +45,10 @@ RiuQwtCurvePointTracker::RiuQwtCurvePointTracker( QwtPlot* pl
this->setTrackerMode( QwtPicker::AlwaysOn );
m_plotMarker = new QwtPlotMarker;
// Have this marker always on top of all curves/plot items.
double zAlwaysOnTop = 99999999;
m_plotMarker->setZ( zAlwaysOnTop );
auto color = RiuGuiTheme::getColorByVariableName( "markerColor" );
// QwtPlotMarker takes ownership of the symbol, it is deleted in destructor of QwtPlotMarker