eclipse-gmf-runtime / gmf-runtime

Eclipse GMF Runtime
https://projects.eclipse.org/projects/modeling.gmf-runtime
Eclipse Public License 2.0
5 stars 19 forks source link

Use precise coordinates in org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx.snapPoint(ChangeBoundsRequest) #63

Closed lredor closed 6 months ago

lredor commented 6 months ago

In Sirius #359, a bug has been discovered in GMF. In the method org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx.snapPoint(ChangeBoundsRequest) the x and y coordinates are used. But if the moveDelta is a PrecisionPoint, preciseX() and preciseY() should be used instead. Indeed, according to the zoom level, preciseX or preciseY can be something like 0.5 and must no be considered as 0.