Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 11, 2024
1 parent 8db512f commit dfcae90
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,19 @@ Iteration &Iteration::open()
Series s = retrieveSeries();
// figure out my iteration number
auto begin = s.indexOf(*this);
if (it.m_closed == internal::CloseStatus::ClosedInFrontend)
{
// Iteration is only logically closed, we can simply unmark it
it.m_closed = internal::CloseStatus::Open;
}
// The current Iteration handle could be stale because it referred to a
// previously closed Iteration
if (&begin->second != this)
{
*this = begin->second;
}
auto &it = get();

if (it.m_closed == internal::CloseStatus::ClosedInFrontend)
{
// Iteration is only logically closed, we can simply unmark it
it.m_closed = internal::CloseStatus::Open;
}
// Ensure that files are accessed.
// If the close status was Closed, this will open it.
s.openIteration(begin->first, *this);
Expand Down

0 comments on commit dfcae90

Please sign in to comment.