From 91d147d761a4f95057f998b50f5770512c603dba Mon Sep 17 00:00:00 2001 From: Albert Cardona Date: Sat, 2 May 2009 15:38:03 +0200 Subject: [PATCH] Don't report pixel value on mouse move for invisible Patches. --- ini/trakem2/display/FakeImagePlus.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ini/trakem2/display/FakeImagePlus.java b/ini/trakem2/display/FakeImagePlus.java index a04f6b03..b9c2779f 100644 --- a/ini/trakem2/display/FakeImagePlus.java +++ b/ini/trakem2/display/FakeImagePlus.java @@ -127,6 +127,7 @@ public class FakeImagePlus extends ImagePlus { for (int i=d.length -1; i>-1; i--) { if (d[i].getClass() == Patch.class && d[i].contains(x, y)) { Patch p = (Patch)d[i]; + if (!p.isVisible()) continue; FakeImagePlus.this.type = p.getType(); // for proper value string display if (!p.isStack() && Math.max(p.getWidth(), p.getHeight()) * mag >= 1024) { // Gather the ImagePlus: will be faster than using a PixelGrabber on an awt image -- 2.11.4.GIT