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

Bug 334073

Summary: Regression in 3.7 while adding new objects to zoomed diagram
Product: [Tools] GEF Reporter: Michael Wenz <michael.wenz>
Component: GEF-Legacy GEF (MVC)Assignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.7   
Target Milestone: 3.7.1 (Indigo) M5   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Wenz CLA 2011-01-12 06:35:07 EST
In Graphiti we noticed an issue that has been introduced with GEF 3.7. It does not occur when running the same Graphiti version (head from CVS) against GEF 3.6.
It can also be reproduced in the GEF logic example.

Here's how to reproduce:
1) Create a new logic diagram
2) Set the zoom level to 250%
3) Create a new object (e.g. circuit) by selecting the creation tool entry and then using drag inside the diagram to define the size
4) The object is much smaller than the area being dragged, also the visualization during the operation is smaller.

Michael
Comment 1 Alexander Nyßen CLA 2011-01-12 09:07:42 EST
Michael, thanks for the input. The regression was put in as part of bug #67541, i.e. within CreationTool#enforceConstraintsForSizeOnDropCreate(CreateRequest) I did not properly translate back to absolute coordinates. Fixed the issue, changes are committed to cvs HEAD (3.7). Verified that Logic example is operational now.
Comment 2 Michael Wenz CLA 2011-01-17 07:10:23 EST
Alexander, I just tested this and it works perfectly again. Thanks for the quick fix!

Michael