RotationIndexer: Fix error in Finalize()

This commit is contained in:
2025-12-01 17:21:01 +01:00
parent 47e3e075d7
commit 0a9e6834a4

View File

@@ -146,6 +146,8 @@ std::optional<RotationIndexerResult> RotationIndexer::ProcessImage(int64_t image
std::optional<RotationIndexerResult> RotationIndexer::Finalize(bool retry) {
if (!indexed_lattice || retry)
TryIndex();
if (!indexed_lattice)
return std::nullopt;
return RotationIndexerResult{
.lattice = indexed_lattice.value(),
.search_result = search_result_,