Fix straight line preview on pencil tool to avoid crash

This commit is contained in:
Martín Capello 2021-05-20 15:45:00 -03:00 committed by David Capello
parent 89fcd44394
commit 6c08b5807d

View File

@ -462,8 +462,7 @@ public:
return;
}
else {
if (m_pts[m_pts.size() - 1] == stroke.lastPoint() &&
stroke.firstPoint() == stroke.lastPoint())
if (stroke.firstPoint() == stroke.lastPoint())
return;
nextPt = m_pts.size();