Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d77ed7e9 authored by Fabio D'Urso's avatar Fabio D'Urso

Fix HighlightAnnotation selection in rotated documents

parent 5888f65a
......@@ -2020,11 +2020,11 @@ double HighlightAnnotationPrivate::distanceSqr( double x, double y, double xScal
//first, we check if the point is within the area described by the 4 quads
//this is the case, if the point is always on one side of each segments delimiting the polygon:
pathPoints << NormalizedPoint( quad.point(0).x, quad.point(0).y );
pathPoints << quad.transformedPoint( 0 );
int directionVote = 0;
for ( int i = 1; i < 5; ++i )
{
NormalizedPoint thisPoint( quad.point( i % 4 ).x, quad.point( i % 4 ).y );
NormalizedPoint thisPoint = quad.transformedPoint( i % 4 );
directionVote += (isLeftOfVector( pathPoints.back(), thisPoint, point )) ? 1 : -1;
pathPoints << thisPoint;
}
......
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