﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2992	OMEdit: Connection coordinates faulty on x- and y-axis	Jan Kokert	Adeel Asghar	"Today, I observed another minor bug in OMEdit.
If you place connection end points between components onto to the x or y-axis by moving the component, the snap-to-grid values are not zero, but “very small”.
An unhandled div/0 may be a candidate, but I can't explain exactly why this is faulty:
{{{ point.setX(stepX * floor((point.x() / stepX) + 0.5)); }}}

I figured out, that the error mainly occurs on axes, which are orthogonal to the direction, which is implied by the component. Here an example:
1.) Place two resistors at (-20|20) and (20|20).
2.) Move the right resistor to (10|20). The resulting annotation will be
{{{annotation(Line(points = {{-10, 20}, {-1.49012e-07, 20}}, color = {0, 0, 255}));}}}
3.) If you move the right resistor to (20|0) everything is fine.

The defect seems to be related to #2477. I opened a separate ticket, because graphically the snapping works well. (Sorry, for finding again and again errors in OMEdit...)
"	defect	closed	low	1.9.2	OMEdit	trunk	fixed	Snap to grid on axis	
