Community
Participate
Working Groups
Steve, here's a more specific defect than bug 155680. Please allow me me to remove the hack that I'm currently using in my trim dragging code (i.e. to set the rectange to (100000,0,0,0) by allowing me to do a setRectangles to an empty array without getting IndexOutOfBounds exceptions. Here's the test code yo sent me... public static void main (String [] args) { Display display = new Display (); final Shell shell = new Shell (display); shell.addListener (SWT.MouseDown, new Listener (){ public void handleEvent (Event event) { Tracker tracker = new Tracker (shell, SWT.NULL); System.out.println("Rectangles=" + tracker.getRectangles()); tracker.setRectangles(new Rectangle [0]); System.out.println("Result=" + tracker.open ()); } }); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
... or not to set the rectangle at all. This didn't work should.
Fixed > 2006101
Thanks Steve...I'll check it out soon.