diff --git a/rugnux/rugnux_cli.cpp b/rugnux/rugnux_cli.cpp index c50bcea33..8eb64c648 100644 --- a/rugnux/rugnux_cli.cpp +++ b/rugnux/rugnux_cli.cpp @@ -1634,7 +1634,7 @@ static int RunRugnux(int argc, char **argv) { // each frame's own goniometer rotation. Say so here, where both cells can be named, instead of // merging indices in a frame they do not belong to. { - const auto &merge_cell = experiment.GetUnitCell().value(); + const UnitCell merge_cell = experiment.GetUnitCell().value(); const float dist_tol = experiment.GetIndexingSettings().GetUnitCellDistTolerance(); const float ang_tol = experiment.GetIndexingSettings().GetUnitCellAngleTolerance_deg(); size_t n_indexed = 0, n_agree = 0; @@ -1677,7 +1677,7 @@ static int RunRugnux(int argc, char **argv) { // the observations in another. Nothing downstream can notice, so the check belongs here, with // both the cell and the group in hand. if (const auto merge_sg = experiment.GetGemmiSpaceGroup()) { - const auto &uc = experiment.GetUnitCell().value(); + const UnitCell uc = experiment.GetUnitCell().value(); const double violation = MetricViolation(uc, *merge_sg); if (violation > MAX_METRIC_VIOLATION) { logger.Error("The space group {} cannot describe this cell: a={:.3f} b={:.3f} c={:.3f} "