Skip to content

Commit

Permalink
2024.09.14 (1.54k23; Array.concatenate)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasband committed Sep 14, 2024
1 parent da0931c commit 662feed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ij/ImageJ.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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.54k";
public static final String BUILD = "21";
public static final String BUILD = "23";
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
4 changes: 2 additions & 2 deletions ij/gui/GenericDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -2050,8 +2050,8 @@ else if (dialogTitle.endsWith(":")) //remove trailing colon
path = directory+name;
}
if (path!=null) {
if (IJ.isWindows())
path = path.replaceAll("\\\\", "/"); // replace "\" with "/"
//if (IJ.isWindows())
// path = path.replaceAll("\\\\", "/"); // replace "\" with "/"
this.textField.setText(path);
}
}
Expand Down
6 changes: 3 additions & 3 deletions ij/macro/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -623,17 +623,17 @@ Variable[] getArray() {
}
}
boolean newArray = interp.token==ARRAY_FUNCTION && pgm.table[interp.tokenAddress].type==NEW_ARRAY;
boolean arrayFunction = interp.token==ARRAY_FUNCTION && pgm.table[interp.tokenAddress].type==ARRAY_FUNC;
boolean arrayFunction = interp.token==ARRAY_FUNCTION;
if (!(interp.token==WORD||newArray||arrayFunction))
interp.error("Array expected");
Variable[] a = null;
if (newArray)
a = getArrayFunction(NEW_ARRAY);
else if (arrayFunction)
a = getArrayFunction(ARRAY_FUNC);
a = getArrayFunction(pgm.table[interp.tokenAddress].type);
else {
Variable v = interp.lookupVariable();
a= v.getArray();
a = v.getArray();
int size = v.getArraySize();
if (a!=null && a.length!=size) {
Variable[] a2 = new Variable[size];
Expand Down
5 changes: 4 additions & 1 deletion release-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body>

<li> <u>1.54k21 10 September 2024</u>
<li> <u>1.54k23 14 September 2024</u>
<ul>
<li> Thanks to 'Carlos', added the RoiManager.delete(index) macro function DOC
and the RoiManager.delete(index) method.
Expand Down Expand Up @@ -60,6 +60,9 @@
segmented line selection iterators when the line was
completely straight vertically or
horizontally.
<li> Thanks to Christophe Leterrier, fixed bug with the
Array.concat() macro function not accepting getList()
as an argument.
<li> Thanks to Felix Rudolphi and Curtis Rueden, fixed a
1.54i regression that caused FileOpener to throw
HeadlessExceptions in headless environments.
Expand Down

0 comments on commit 662feed

Please sign in to comment.