Bug 345886 - RoundedBendpoints mechanism sometimes causes Connection drawing to fail
Summary: RoundedBendpoints mechanism sometimes causes Connection drawing to fail
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 04:23 EDT by ckru Mising name CLA
Modified: 2011-05-16 04:27 EDT (History)
0 users

See Also:


Attachments
picture showing such a messed up connection (37.39 KB, image/png)
2011-05-16 04:27 EDT, ckru Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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