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.

Bug 828 - Regression: new smart recording mode leads to unexpected record commands
Regression: new smart recording mode leads to unexpected record commands
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
All All
: P5 enhancement
Assigned To: ImageJ Bugs Mailing List
: 834
Depends on:
Blocks:
 
Reported: 2014-07-01 09:46 CDT by Jan Eglinger
Modified: 2014-09-17 17:55 CDT
2 users (show)

See Also:

Description Jan Eglinger 2014-07-01 09:46:56 CDT
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)
Comment 1 Jan Eglinger 2014-07-02 15:35:50 CDT
*** Bug 834 has been marked as a duplicate of this bug. ***
Comment 2 Wayne Rasband 2014-09-17 17:55:33 CDT
This regression is fixed in the ImageJ 1.49h1 daily build, with this commit

   https://github.com/imagej/imagej1/commit/3185b441