Posted by
dscho on
URL: http://imagej.273.s1.nabble.com/Patch-for-ImageJ-that-fixes-a-HeadlessException-error-tp3698809p3698813.html
Hi Victor,
On Wed, 18 Jul 2007, Victor Petrov wrote:
> Thank you for pointing that out. Originally, setupFrame() was using the
> global variable "graphics", which was a placeholder for the Graphics
> object. I guess in the process of testing, I changed setupFrame() to use
> a local Graphics g variable and forgot to change it back.
>
> I wasn't using the Antialiased option so I didn't have any issues due to
> graphics being null.
That's what I suspected.
> I've changed the setupFrame function to use the global "graphics"
> variable and here's the patch for it
Thank you for your work!
> (apparently, my diff doesn't support the --git option):
Heh. I use "git" to track source code, and it was much easier to convince
git to just pick out the right version of ImageProcessor.java, so that I
could see what _you_ changed, as opposed to what was changed in the recent
releases.
IMHO a diff shows better what you did, and is nicer to discuss things
via email, but I know that Wayne likes complete files, when it comes to
inclusion.
Wayne, if you want to see the diff against the current release, please
see:
http://repo.or.cz/w/imageja.git?a=commitdiff;h=e5dc6a95b4722c6b00b8b07cecfac820dac3fd10and for the complete file:
http://repo.or.cz/w/imageja.git?a=blob_plain;f=ij/process/ImageProcessor.java;h=da739933f29e5898b8892643fe47639c462de001Ciao,
Dscho