A fix for bug 255 (the doubled and offset brush drawing in area lists)double-brushing-fix
authorMark Longair <longair@ini.phys.ethz.ch>
Sun, 28 Nov 2010 13:42:27 +0000 (28 14:42 +0100)
committerMark Longair <longair@ini.phys.ethz.ch>
Sun, 28 Nov 2010 13:42:27 +0000 (28 14:42 +0100)
The transformations were applied in a different order when adding
areas for each mouse event and adding areas in the interpolator
thread.

ini/trakem2/display/AreaWrapper.java

index bd3a6dc..abde55c 100644 (file)
@@ -426,7 +426,7 @@ public class AreaWrapper {
                                final Runnable task = new Runnable() {
                                        public void run() {
                                                final AffineTransform aff = new AffineTransform(1, 0, 0, 1, p.x, p.y);
-                                               aff.concatenate(at_inv);
+                                               aff.preConcatenate(at_inv);
                                                final Area slash = slashInInts(brush.createTransformedArea(aff));
                                                synchronized (arealock) {
                                                        if (0 == (flags & alt)) {