diff --git a/cursors.cpp b/cursors.cpp index 1c22b3e..4d838e2 100644 --- a/cursors.cpp +++ b/cursors.cpp @@ -93,5 +93,4 @@ void Cursors::setSelection(range_t selection) { minCursor->setPos(selection.minimum); maxCursor->setPos(selection.maximum); - emit cursorsMoved(); } diff --git a/plotview.cpp b/plotview.cpp index 8018973..1602e4d 100644 --- a/plotview.cpp +++ b/plotview.cpp @@ -114,6 +114,7 @@ void PlotView::enableCursors(bool enabled) if (enabled) { int margin = viewport()->rect().width() / 3; cursors.setSelection({viewport()->rect().left() + margin, viewport()->rect().right() - margin}); + cursorsMoved(); } viewport()->update(); }