CurvesGraphicsView.cpp edited online with Bitbucket

This commit is contained in:
Michel Mastriani 2020-01-04 13:25:40 +00:00
parent ba1e5ed922
commit d9d21a88b8

View File

@ -242,7 +242,7 @@ void CurvesGraphicsView::mousePressEvent(QMouseEvent* e)
if (i != -1)
emit PointRemovedSignal(m_Index, i);
}
else if (findpoint(e->pos().x(), e->pos().y(), thresh * 8) == -1)
else if (findpoint(e->pos().x(), e->pos().y(), thresh * 2) == -1)
{
QRectF rect = scene()->sceneRect();
auto points = m_Points[m_Index];