|
Bugzilla – Bug 828 |
Regression: new smart recording mode leads to unexpected record commands |
Last modified: 2014-09-17 17:55:33 CDT |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
| Regression: new smart recording mode leads to unexpected record commands | |
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
The GenericDialog.setSmartRecording() method (used e.g. for the 'Image>Stacks>Z project...' command since ImageJ 1.48s) leads to unexpected behaviour when recording commands with default values. To reproduce, run the following commands: - Plugins > Macros > Record... - File > Open Samples > Bat Cochlea Volume (19K) - Image > Stacks > Z Project... - click on OK without modifying the default parameters (i.e. using Average Intensity) The recorded macro commands are: run("Bat Cochlea Volume (19K)"); run("Z Project..."); which, when run, result in the ZProjection dialog being shown. Instead, a user of the command recorder expects the commands to be run *without* showing additional dialogs. To fix this, the affected commands (Analyze Particles, Image Sequence, and Z Project [1]) should record *at least one* parameter (or simply a space character) even when invoked with only default parameters. E.g. run("Z Project...", " "); [1]: according to http://imagej.nih.gov/ij/notes.html (see 1.48s 7 March 2014)