Merged in mmastriani/fractorium/Michel-Mastriani/curvesgraphicsviewcpp-edited-online-with-1578144335752 (pull request #32)

CurvesGraphicsView.cpp edited online with Bitbucket

Approved-by: Matt Feemster <matt.feemster@gmail.com>
This commit is contained in:
Michel Mastriani 2020-01-04 18:20:38 +00:00 committed by Matt Feemster
commit 89aab8e360

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];