Re: Ubuntu empty window bug
Posted by dscho on Aug 17, 2010; 4:03pm
URL: http://imagej.273.s1.nabble.com/Ubuntu-empty-window-bug-tp3687235p3687237.html
Hi,
On Tue, 17 Aug 2010, Michael Doube wrote:
> I have struck a bug in today's daily update (1.44f10), which results in
> failure to display the contents of a stack, then ImageJ becoming unresponsive.
> I think it appeared around 1.44f9 or 1.44f10.
It appeared in 1.44f9 (I used Git's bisect tool to find out). The problem
was introduced due to an apparent bug fix. You can work around it with
this patch.
-- snipsnap --
diff --git a/ij/ImagePlus.java b/ij/ImagePlus.java
index 3a57cde..4736103 100644
--- a/ij/ImagePlus.java
+++ b/ij/ImagePlus.java
@@ -572,7 +572,7 @@ public class ImagePlus implements ImageObserver, Measurements {
if (isDisplayedHyperStack()) setOpenAsHyperStack(true);
win = new StackWindow(this); // replaces this window
setPosition(1, 1, 1);
- } else if (dimensionsChanged || sliderChange)
+ } else if (dimensionsChanged /*|| sliderChange*/)
win.updateImage(this);
else
repaintWindow();