Skip to content

Commit 2409037

Browse files
committed
Revert "DisplayPostprocessor: set name if creating display"
This reverts commit 6913c42, which was attempting to a fix a bug actually determined to be in imagej-common. See imagej/imagej-common@c3cf15a
1 parent 92a9a94 commit 2409037

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/scijava/display/DisplayPostprocessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@ private void handleOutput(final String defaultName, final Object output) {
113113
}
114114
else {
115115
// create a new display for the output
116-
final Display<?> display = displayService.createDisplay(defaultName, output);
116+
final Display<?> display = displayService.createDisplay(output);
117117
if (display != null) {
118118
displays.add(display);
119+
if (display.getName() == null) {
120+
// set a default name based on the parameter
121+
display.setName(defaultName);
122+
}
119123
}
120124
}
121125
}

0 commit comments

Comments
 (0)