Bug 392759 - Wrong display while zooming
Summary: Wrong display while zooming
Status: RESOLVED DUPLICATE of bug 393874
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 10:45 EDT by BiM Mising name CLA
Modified: 2012-11-12 13:35 EST (History)
1 user (show)

See Also:


Attachments
Abnormal spacing between two ellipses (6.26 KB, image/png)
2012-10-24 10:45 EDT, BiM Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description BiM Mising name CLA 2012-10-24 10:45:53 EDT
Created attachment 222726 [details]
Abnormal spacing between two ellipses

Hi,

I use the GraphicalEditor and I try to draw an ellipse or rectangle on this editor. I have a tool to force the size of my objects.

I can seen that for two objets side to side, when I scale, they are separate by a space. It seems to come from a wrong calculation of zooming: see ScaledGraphics#fillOval for example.

If I have an ellipse with a size center to 50,50 and a diameter of 20, this one is shifted to a smaller size when I do a zoom.

On the following attachment, I draw two ellipses with a diameter of 50 and a center to 35,35 and 85,35, they should be adjacent but they're not. My zoom is 4.0x. Scale of my grid is 5.

Could you please help me ?

Regards,
Bérénice MAUREL

Note that I'm on 3.3.1, and I have downloaded 3.8 sources for ScaledGraphics class, and the process seems to be the same.
Comment 1 Alexander Nyßen CLA 2012-11-12 13:35:28 EST
I think this is because you run into rounding effects. The same problem has been reported in bug #393874.

*** This bug has been marked as a duplicate of bug 393874 ***