diff --git a/GUI/View/Plotter/ScientificPlot.cpp b/GUI/View/Plotter/ScientificPlot.cpp index 646d2da7db7a07cdbc1d9878f9a3eea79e7952c9..e3f6d21cb72bf73e2b7b6341c1b8617988a0be75 100644 --- a/GUI/View/Plotter/ScientificPlot.cpp +++ b/GUI/View/Plotter/ScientificPlot.cpp @@ -51,11 +51,8 @@ QRectF ScientificPlot::viewportRectangle() const bool ScientificPlot::event(QEvent* event) { - if (event->type() == QEvent::Resize || event->type() == QEvent::UpdateRequest) { - emit repaint_request(); - return false; // allow further handling - } - return true; // stop further handling + emit repaint_request(); + return QWidget::event(event); } qreal ScientificPlot::toSceneX(qreal v) const