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

Bug 401367

Summary: BendpointEditPolicy: BendpointRequest.getLocation() returns wrong location when zooming
Product: [Tools] GEF Reporter: Tim E. <mailtonex>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: mailtonex
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Tim E. CLA 2013-02-20 16:13:26 EST
Hey,

I'm using a BendpointEditPolicy for creating, moving and deleting (absolute) bendpoints for my connections.

Now the following happens:

When I zoomed, e.g. to 300%, the passed BendpointRequest returns a wrong location.
Even after I scale the location with 1/zoomFactor (where zoomFactor would be 3.0) the location is not right.

For example: imagine a connection from (193.0, 89.0) to (973.0, 84.0)
getLocation() returns (914.0, 277.0), when I move the bendpoint in the middle of the location a small distance to the left.
When I now scale the location, I still get the wrong location.

If this is not a bug, and I'm missing something important, please let me know.

Cheers,
Tim
Comment 1 Tim E. CLA 2013-02-21 10:26:26 EST
Probably invalid, since I got it working by now using relative bendpoints.

I probably just missed something, but I can't remember it...

Sorry for the spam!