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

Bug 396728

Summary: drawLine in Windows moves things around
Product: [Tools] GEF Reporter: Kresten Peter Vester <kresten+eclipse>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
With most lines drawn
none
With less lines
none
With no lines none

Description Kresten Peter Vester CLA 2012-12-17 05:20:49 EST
Created attachment 224790 [details]
With most lines drawn

There are currently only very limited code I can provide to reproduce this issue.

I have a very large canvas ().

In that canvas things becomes unaligned when i draw a LOT of lines (20k+) (using org.eclipse.draw2d.Graphics.drawLine(int, int, int, int))

The issue is not reproducible on Linux.

I attach screenshots to show the different results with lines drawn and not.

Furthermore it is not an issue on zoom levels 4, 2, 1, 0.5
Comment 1 Kresten Peter Vester CLA 2012-12-17 05:21:24 EST
Created attachment 224791 [details]
With less lines
Comment 2 Kresten Peter Vester CLA 2012-12-17 05:21:55 EST
Created attachment 224792 [details]
With no lines
Comment 3 Alexander Nyßen CLA 2012-12-17 13:00:38 EST
Well, what should I do with this? With the information you provided, there is no chance I can reproduce the issue. I will resolve this as worksforme. Please re-open and attach detailed steps to reproduce and/or some code snippet that shows what you are doing in detail. 

From what you describe (does not occur on Linux) I suppose its an SWT problem, so I would recommend to try to reproduce it with an SWT standalone snippet (drawing on the GC directly rather than using the Draw2d Graphics) first before we look into GEF code.