crosshair.c: Revise heuristic for snapping on off-grid lines
commitb0fd3fe6acc9fe632b6c0cd3d5a8485f293d7889
authorPeter Clifton <pcjc2@cam.ac.uk>
Tue, 2 Aug 2011 23:26:20 +0000 (3 00:26 +0100)
committerPeter Clifton <pcjc2@cam.ac.uk>
Tue, 2 Aug 2011 23:26:20 +0000 (3 00:26 +0100)
tree6472b531cecb0c6a63121bffe1481d78a935da70
parentba3a56929b240c5c3ab1ee1af7149b30dcdbb8cf
crosshair.c: Revise heuristic for snapping on off-grid lines

Only snap to an off-grid section of a line when:

Drawing lines on the same layer as the one being snapped to
When manipulating the end-point of a _different) line on the
same layer as the one being snapped to.

This should hopefully reduce the tendancy of the off-grid-line
code to cause lots of unnecessary snapping.
src/crosshair.c