Skip to content

Commit

Permalink
ResultInserter: update the last row matching the title
Browse files Browse the repository at this point in the history
Behaviour is much more intuitive and consistent, when plugin settings
change between runs.
  • Loading branch information
mdoube committed Aug 10, 2018
1 parent 1208fa9 commit ad0e429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/doube/util/ResultInserter.java
Expand Up @@ -62,9 +62,9 @@ public static ResultInserter getInstance() {
public void setResultInRow(final ImagePlus imp, final String colHeading, final double value) {
final String title = imp.getTitle();

// search for the first row that contains the image title
// search for the last row that contains the image title
// and contains no value for the heading
for (int row = 0; row < rt.getCounter(); row++) {
for (int row = rt.getCounter()-1; row >= 0; row--) {
if (rt.getLabel(row) == null) {
rt.setLabel(title, row);
}
Expand Down

0 comments on commit ad0e429

Please sign in to comment.