Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 5888f65a authored by Fabio D'Urso's avatar Fabio D'Urso

Allow selection of polygons through the segment that closes the path too

parent 3c65f81f
......@@ -1560,7 +1560,12 @@ AnnotationPrivate* LineAnnotationPrivate::getNewAnnotationPrivate()
double LineAnnotationPrivate::distanceSqr( double x, double y, double xScale, double yScale )
return strokeDistance( ::distanceSqr( x, y, xScale, yScale, m_transformedLinePoints ),
QLinkedList<NormalizedPoint> transformedLinePoints = m_transformedLinePoints;
if ( m_lineClosed ) // Close the path
transformedLinePoints.append( transformedLinePoints.first() );
return strokeDistance( ::distanceSqr( x, y, xScale, yScale, transformedLinePoints ),
m_style.width() * xScale / ( m_page->m_width * 2 ) );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment