Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345886

Summary: RoundedBendpoints mechanism sometimes causes Connection drawing to fail
Product: [Modeling] GMF-Runtime Reporter: ckru Mising name <ckru>
Component: GeneralAssignee: Project Inbox <gmf-runtime-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
picture showing such a messed up connection none

Description ckru Mising name CLA 2011-05-16 04:23:11 EDT
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
Comment 1 ckru Mising name CLA 2011-05-16 04:27:25 EDT
Created attachment 195696 [details]
picture showing such a messed up connection