RotationIndexer: Fix error in Finalize()
This commit is contained in:
@@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user