-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change from #347 break the FanRouter functionality #383
Comments
I assume the problem is due to the fraction now being considered? Before: ⌊(index / 2)⌋ * (-1 * ySeparation) |
Yes, this is what causes the problem. |
As I broke it I'll provide a fix. Will do that right after the repo is ready for 3.20 |
This commit partially reverts fd75841 and uses PrecisionPoints instead of Points in the FanRouter class, to store the bend point. Note that because the mid point is a plain point, the equality check is done using the integer coordinates. Resolves eclipse-gef#383
This commit partially reverts fd75841 and uses PrecisionPoints instead of Points in the FanRouter class, to store the bend point. Note that because the mid point is a plain point, the equality check is done using the integer coordinates. Resolves eclipse-gef#383
I already had a look at it yesterday and I think the easiest way is to simply revert the change and use a PrecisionPoint, to get rid of the deprecation warning. See #385 |
This commit partially reverts fd75841 and uses PrecisionPoints instead of Points in the FanRouter class, to store the bend point. Note that because the mid point is a plain point, the equality check is done using the integer coordinates. Resolves eclipse-gef#383
This commit partially reverts fd75841 and uses PrecisionPoints instead of Points in the FanRouter class, to store the bend point. Note that because the mid point is a plain point, the equality check is done using the integer coordinates. Resolves eclipse-gef#383
Change #347 that is seemingly only cosmetic, changes the code in FanRouter handleCollision method from:
to
This breaks the connection drawing in the application that I'm developing. Here's a simple visual example.
Before:
After:
Clearly the new code change is not equivalent to the old one. The effect is that before the condition after the bendPoint calculation was false, but in the changed code it's calculated as true.
The text was updated successfully, but these errors were encountered: