diff --git a/plotview.cpp b/plotview.cpp index 261f0df..76cfbea 100644 --- a/plotview.cpp +++ b/plotview.cpp @@ -135,8 +135,9 @@ bool PlotView::eventFilter(QObject * obj, QEvent *event) QMouseEvent *mouseEvent = static_cast(event); - if (cursors.mouseEvent(event->type(), *mouseEvent)) - return true; + if (cursorsEnabled) + if (cursors.mouseEvent(event->type(), *mouseEvent)) + return true; int plotY = -verticalScrollBar()->value(); for (auto&& plot : plots) {