Community
Participate
Working Groups
Created attachment 269248 [details] EdgeCreationPositionTest.zip When an edge is created with the snapToGrid enabled, it is sometimes not snaped to the grid. This is caused by a bug in NodeFigure where the getBounds() method is used to create the anchor and after, the getHandleBounds() is used to compute the corresponding location. The both methods do not return the same Rectangle. This explains the small shift that can be observed. Steps to reproduce: * Import the project "EdgeCreationPositionTest" (from "EdgeCreationPositionTest.zip") * Open the diagram "Container" * Activate the snapToGrid ("Ruler Units"=Pixels, and "Grid Spacing"=100) * Activate the "Show Grid" option * Enable the preference "Enable user specific default values" in Preferences/Sirius/Sirius Diagram/Connections" and set "Line style" to Rectilinear. * Create an edge with the tool "Super" between "A" and "B" near the top grid line (y = 100). * The edge is just above the grid line: KO it should be on the grid line.
Gerrit change https://git.eclipse.org/r/95878 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=59a503ac24c373d3cad49336874643a5f442c85e
New Gerrit change created: https://git.eclipse.org/r/101056
Gerrit change https://git.eclipse.org/r/101056 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=76a352526f7647c4be4eb462c4dc75d2012f43ba
Available in Sirius 5.1.0, see https://wiki.eclipse.org/Sirius/5.1.0.