| Summary: | RoundedBendpoints mechanism sometimes causes Connection drawing to fail | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | ckru Mising name <ckru> | ||||
| Component: | General | Assignee: | Project Inbox <gmf-runtime-inbox> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 195696 [details]
picture showing such a messed up connection
|
Build Identifier: 20110301-1815 In rare cases while RoundedBendpoints are activated some connections aren't drawn, instead only some weird artifacts show up. After some debugging i found out that it happens if the length of a segment between two bendpoints is exactly twice the roundedBendpointradius. Changing line 1974 of the org.eclipse.gmf.runtime.draw2d.ui.geometry.PointListUtilities class from if (r > distance / 2) { to if (r >= distance / 2) { does fix the problem for me. Reproducible: Always Steps to Reproduce: 1.activate roundedbendpoints 2.have a connection with a segment twice the length of the rounded bendpoint radius