Skip to content
Snippets Groups Projects
Commit 3770a4a7 authored by Ulrich Schöpp's avatar Ulrich Schöpp
Browse files

Fix off-by one error in automatic layout


The coordinates of diagram ports were rounded to the next grid position,
while all other positions (bend points, component ports) were rounded
down. As a result, the position of diagram ports can sometimes be off
by one grid position. This probably was not noticed because the size
of diagram ports in the diagram tape measure was multiplied by 2, so
that the issue happend less often.

Example:
File > Open AF3 Example > Load ACC Example, open component
AdaptiveCruiseControl and do automatic layout. Some arrows that
should be horizontal are not quite.

Signed-off-by: default avatarUlrich Schöpp <info@ulrichschoepp.de>
Issue-Ref: 4184
parent ca396aa0
No related branches found
No related tags found
1 merge request!166Polish diagram appearance
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment