Skip to content

Commit

Permalink
2019.06.06 (1.52p46; Gamma in headless mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasband committed Jun 6, 2019
1 parent be6d72b commit 0ab717b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ij/ImageJ.java
Expand Up @@ -78,7 +78,7 @@ public class ImageJ extends Frame implements ActionListener,

/** Plugins should call IJ.getVersion() or IJ.getFullVersion() to get the version string. */
public static final String VERSION = "1.52p";
public static final String BUILD = "43";
public static final String BUILD = "44";
public static Color backgroundColor = new Color(237,237,237);
/** SansSerif, 12-point, plain font. */
public static final Font SansSerif12 = new Font("SansSerif", Font.PLAIN, 12);
Expand Down
5 changes: 4 additions & 1 deletion ij/plugin/filter/ImageMath.java
Expand Up @@ -159,7 +159,10 @@ void getBinaryValue (String title, String prompt, String defaultValue) {

void getGammaValue (double defaultValue) {
gd = new GenericDialog("Gamma");
gd.addSlider("Value:", 0.0, 5.0, defaultValue, 0.02);
if (GraphicsEnvironment.isHeadless())
gd.addNumericField("Value:", defaultValue, 2);
else
gd.addSlider("Value:", 0.0, 5.0, defaultValue, 0.02);
gd.addPreviewCheckbox(pfr);
gd.addDialogListener(this);
gd.showDialog();
Expand Down
9 changes: 6 additions & 3 deletions release-notes.html
Expand Up @@ -5,7 +5,7 @@
</head>
<body>
Maximized image windows no longer revert to the main screen.
<li> <u>1.52p43 5 June 2019</u>
<li> <u>1.52p44 6 June 2019</u>
<ul>
<li> Thanks to Uwe Schmidt, improved the support for multiple screen setups:
<ul>
Expand Down Expand Up @@ -33,12 +33,13 @@
<li> Thanks to Somsubhro Chaudhuri, added the getValue("selection.angle")
macro function and the Rotator.getAngle() method.
<li> Added the getValue("selection.size") macro function.
<li> Added the setOption("CopyHeadings",boolean) macro function.
<li> Thanks to Wilhelm Burger, added the Menus.add(menuPath,class)
method.
<li> Thanks to Philippe Carl, added the RoiManager.getErrorMessage() method.
<li> Thanks to Laurent Thomas, updated the Javadoc of the MaximumFinder.getMaxima()
methods to make it clearer that the npoints field of the returned Polygon is the
number of maxima found, not the length of the xpoints field.
methods to make it clearer that the npoints variable of the returned Polygon is the
number of maxima found, not the length of the xpoints variable.
<li> Thanks to Mikael Eriksson, fixed a bug that caused the
particle analyzer's "Summary" table to not be accessible in macros
run from the command line using the -batch option.
Expand Down Expand Up @@ -69,6 +70,8 @@
the Overlay.drawLine() macro function to not work
correctly when used in conjuction with Overlay.setColor()
and/or Overlay.setPosition().
<li> Thanks to 'Niederle', worked around a bug that caused the
run("Gamma...", "value=...") macro function to fail in Fiji headless mode.
</ul>

<li> <u>1.52o 23 April 2019</u>
Expand Down

0 comments on commit 0ab717b

Please sign in to comment.