mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4574 Summary Plot: Do not modify highlight curve change when zooming
This commit is contained in:
@@ -174,7 +174,22 @@ bool RiuQwtPlot::eventFilter(QObject* watched, QEvent* event)
|
||||
{
|
||||
if(mouseEvent->button() == Qt::LeftButton && mouseEvent->type() == QMouseEvent::MouseButtonRelease)
|
||||
{
|
||||
selectClosestCurve(mouseEvent->pos());
|
||||
bool anyZoomingActive = false;
|
||||
|
||||
if (m_zoomerLeft && m_zoomerLeft->isActiveAndValid())
|
||||
{
|
||||
anyZoomingActive = true;
|
||||
}
|
||||
|
||||
if (m_zoomerRight && m_zoomerRight->isActiveAndValid())
|
||||
{
|
||||
anyZoomingActive = true;
|
||||
}
|
||||
|
||||
if (!anyZoomingActive)
|
||||
{
|
||||
selectClosestCurve(mouseEvent->pos());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user