bug fix in the chart tracker text (wrong y-value) - if using QWT charts
authorAlexey Chernobaev <achernobaev@dev.rtsoft.ru>
Mon, 12 Mar 2018 20:02:03 +0000 (23:02 +0300)
committerAlexey Chernobaev <achernobaev@dev.rtsoft.ru>
Mon, 12 Mar 2018 20:02:03 +0000 (23:02 +0300)
src/analyze/gui/chartwidgetqwtplot.cpp

index c5c950f8538c1413fa17851aedabad92fdf79b70..4ec67eaec3b0b62350f36e32330d74c6a1d47ba1 100644 (file)
@@ -33,7 +33,9 @@ class SizeScaleDraw: public QwtScaleDraw
 class Zoomer: public QwtPlotZoomer
 {
 public:
-    Zoomer(ChartWidgetQwtPlot *plot) : QwtPlotZoomer(plot->canvas()), m_plot(plot)
+    Zoomer(ChartWidgetQwtPlot *plot)
+        : QwtPlotZoomer(QwtPlot::xBottom, QwtPlot::yRight, plot->canvas()),
+          m_plot(plot)
     {
         setRubberBandPen(QColor(Qt::darkGreen));
         setTrackerMode(QwtPlotPicker::AlwaysOn);