Skip to content

Commit

Permalink
mraplots/ImagePositionsExporter: CorrectedPosition instance required …
Browse files Browse the repository at this point in the history
…is now acquired via the source instead of creating a new CorrectedPosition instance.
  • Loading branch information
miguel-paz committed Nov 14, 2024
1 parent 44784de commit a8a11a5
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@
@PluginDescription(name="Export image positions to CSV")
public class ImagePositionsExporter implements MRAExporter {
private CorrectedPosition positions;

public ImagePositionsExporter(IMraLogGroup source) {
positions = new CorrectedPosition(source);
if (source.getCorrectedPosition() != null) {
this.positions = source.getCorrectedPosition();
}
else {
this.positions = new CorrectedPosition(source);
}
}

@Override
Expand Down

0 comments on commit a8a11a5

Please sign in to comment.