#4574 Summary Plot: Do not modify highlight curve change when zooming

This commit is contained in:
Magne Sjaastad
2019-08-16 14:02:16 +02:00
parent 7295ba8533
commit c78b435864
3 changed files with 28 additions and 4 deletions

View File

@@ -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());
}
}
}
}